void Update() { if (gameController.isPauseState) { return; } UpdatePosition(); GetHitOffset(); if (transform.position.z <= laneController.targetBottomTrans.position.z) { gameController.ReturnNoteObjectToPool(this); ResetNote(); } }
/// <summary> /// 检测长音符 /// </summary> public void CheckLongNote() { if (HasLongNote) { NoteObject noteObject = trackedNotes.Peek(); trackedNotes.Dequeue(); gameController.ReturnNoteObjectToPool(noteObject); } }