mirror of
https://github.com/RHeavenStudio/HeavenStudio.git
synced 2025-06-12 11:07:39 +02:00
Glee Club fix (#860)
* gleeclub * Add shorter instantiation and better C offset --------- Co-authored-by: EpicGamer2469 <epicgamer5694@gmail.com>
This commit is contained in:
@ -83,8 +83,11 @@ public class NotePropertyPrefab : NumberPropertyPrefab
|
||||
slider.wholeNumbers = true;
|
||||
|
||||
offsetFromC = 0;
|
||||
if(note.offsetToC)
|
||||
offsetFromC = 3 - note.sampleNote;
|
||||
if (note.offsetToC) {
|
||||
int sameC = 3 - note.sampleNote;
|
||||
int upperC = 15 - note.sampleNote;
|
||||
offsetFromC = Mathf.Abs(sameC) < Mathf.Abs(upperC) ? sameC : upperC;
|
||||
}
|
||||
|
||||
int lastValue = (int)slider.value;
|
||||
slider.value = Convert.ToSingle(parameterManager.entity[propertyName]) - offsetFromC;
|
||||
|
Reference in New Issue
Block a user