void Start() { EZR.PlayManager.Reset(); EZR.PlayManager.LoadPattern(); EZR.PlayManager.LoopStop += loopStop; displayLoop = GetComponent <EZR.DisplayLoop>(); displayLoop.enabled = true; }
public void Init(int index, DisplayLoop loop, ObjectPool pool) { enabled = true; image.enabled = true; this.index = index; displayLoop = loop; this.pool = pool; MeasureLines.Add(this); updateMeasure(); }
// 初始化音符 public void Init(int index, int position, int length, float x, DisplayLoop loop, ObjectPool pool) { IsDestroy = false; enabled = true; image.enabled = true; this.Index = index; this.position = position; displayLoop = loop; this.pool = pool; if (displayLoop.NoteUseScale) { noteScale = displayLoop.NoteSize; } else { noteScale = transform.localScale.y; rect.sizeDelta = new Vector2(displayLoop.NoteSize / noteScale, rect.sizeDelta.y); } transform.localScale = new Vector3(noteScale, noteScale, 1); IsLongPressed = false; if (length > 6) { noteLength = length; LongNoteCount = Mathf.Max(1, noteLength / Judgment.LongNoteComboStep); } else { noteLength = 0; LongNoteCount = 0; } LongNoteCombo = 0; initX = x; updateNote(); }
void Start() { EZR.PlayManager.LoopStop += loopStop; EZR.PlayManager.DebugEvent += debugEvent; displayLoop = GameObject.Find("ScriptObject").GetComponent <EZR.DisplayLoop>(); }