Exemplo n.º 1
0
        void Update()
        {
            if (gameController.isPauseState)
            {
                return;
            }

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