Skip to content

Commit 0beef4d

Browse files
committed
Updated README.md
1 parent fb373a7 commit 0beef4d

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -186,11 +186,11 @@ var position = Utilities.ConvertTickToPosition(tick, resolution);
186186
```csharp
187187
using RhythmGameUtilities;
188188

189-
const int tick = 2784;
189+
const int seconds = 2784;
190190
const int resolution = 192;
191191
const bpmChanges = new Dictionary<int, int>();
192192

193-
var position = Utilities.ConvertSecondsToTicks(tick, resolution, bpmChanges);
193+
var ticks = Utilities.ConvertSecondsToTicks(seconds, resolution, bpmChanges);
194194
```
195195

196196
#### `Utilities.IsOnTheBeat`
@@ -212,23 +212,23 @@ if (Utilities.IsOnTheBeat(bpm, currentTime))
212212
```csharp
213213
using RhythmGameUtilities;
214214

215-
var position = Utilities.RoundUpToTheNearestMultiplier(12, 10);
215+
var value = Utilities.RoundUpToTheNearestMultiplier(12, 10);
216216
```
217217

218218
#### `Utilities.Lerp`
219219

220220
```csharp
221221
using RhythmGameUtilities;
222222

223-
var position = Utilities.Lerp(0, 10, 0.5f);
223+
var value = Utilities.Lerp(0, 10, 0.5f);
224224
```
225225

226226
#### `Utilities.InverseLerp`
227227

228228
```csharp
229229
using RhythmGameUtilities;
230230

231-
var percentage = Utilities.InverseLerp(0, 10, 5);
231+
var value = Utilities.InverseLerp(0, 10, 5);
232232
```
233233

234234
## Architecture

UnityPackage/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -186,11 +186,11 @@ var position = Utilities.ConvertTickToPosition(tick, resolution);
186186
```csharp
187187
using RhythmGameUtilities;
188188

189-
const int tick = 2784;
189+
const int seconds = 2784;
190190
const int resolution = 192;
191191
const bpmChanges = new Dictionary<int, int>();
192192

193-
var position = Utilities.ConvertSecondsToTicks(tick, resolution, bpmChanges);
193+
var ticks = Utilities.ConvertSecondsToTicks(seconds, resolution, bpmChanges);
194194
```
195195

196196
#### `Utilities.IsOnTheBeat`
@@ -212,23 +212,23 @@ if (Utilities.IsOnTheBeat(bpm, currentTime))
212212
```csharp
213213
using RhythmGameUtilities;
214214

215-
var position = Utilities.RoundUpToTheNearestMultiplier(12, 10);
215+
var value = Utilities.RoundUpToTheNearestMultiplier(12, 10);
216216
```
217217

218218
#### `Utilities.Lerp`
219219

220220
```csharp
221221
using RhythmGameUtilities;
222222

223-
var position = Utilities.Lerp(0, 10, 0.5f);
223+
var value = Utilities.Lerp(0, 10, 0.5f);
224224
```
225225

226226
#### `Utilities.InverseLerp`
227227

228228
```csharp
229229
using RhythmGameUtilities;
230230

231-
var percentage = Utilities.InverseLerp(0, 10, 5);
231+
var value = Utilities.InverseLerp(0, 10, 5);
232232
```
233233

234234
## Architecture

0 commit comments

Comments
 (0)