public void Initialize() { IsActive = true; StartPoint = 0; StartPointText.text = LocaleManager.instance.GetLocaleText("creator_auto"); NoteSpeed = 1.0f; SpeedText.text = NoteSpeed.ToString("N1"); ScopeVal = 1.0f; ScopeText.text = (ScopeVal * 100).ToString("N0") + "%"; DivLine = 8; DivArrayIndex = 5; DivLineText.text = DivLine.ToString(); ViewSpecific = false; ViewSpecificBtn.targetGraphic.color = GlobalTheme.ThemeColor(); ViewSpecificBtn.gameObject.GetComponentInChildren <Text>().color = GlobalTheme.ThemeContrastColor(); RText.text = NoteColorR.ToString(); GText.text = NoteColorG.ToString(); BText.text = NoteColorB.ToString(); ColorPanel.color = new Color32(NoteColorR, NoteColorG, NoteColorB, 255); LevelSelect(LevelVal); ChangeLine(MaxLine); SelectNoteMode(0); SelectFlickMode(0); ChangeBeats(BeatVal); ChangeSize(1); PlaceModeChanged(0); Player.Clean(); MetadataMode = false; ShowMetadata(); }
public void ChangeSpeed(int moveVal) { if (moveVal.Equals(0) && NoteSpeed > 0.1f) { NoteSpeed -= 0.1f; } else if (moveVal.Equals(1) && NoteSpeed < 9.9f) { NoteSpeed += 0.1f; } SpeedText.text = NoteSpeed.ToString("N1"); if (SelectedNote.Count > 0) { foreach (CreatorNote note in SelectedNote) { note.Speed = NoteSpeed; note.UpdateInfoToUI(); } } }