Пример #1
0
    // Update is called once per frame
    void Update()
    {
        if (gameController.isPauseState)
        {
            return;
        }

        UpdatePosition();
        GetHitOffset();
        if (transform.position.z <= laneController.targetBottomTrans.position.z)
        {
            gameController.ReturnNoteObjectToPool(this);
            ResetNote();
        }
    }
Пример #2
0
 //返回对象池
 void ReturnToPool()
 {
     gameController.ReturnNoteObjectToPool(this);
     ResetNote();
 }