Exemplo n.º 1
0
 public void OnStartGame(object data)
 {
     Debug.Log("OnStartGame");
     _GameState = BallteGameState.Gaming;
     _BoxsMoveController.OnStart();
     BattleTempData.Instance.gameState = GameState.Gaming;
 }
Exemplo n.º 2
0
    void checkDead()
    {
        List <GameObject> groupsObj = BattleTempData.Instance.groupsObj;

        if (groupsObj.Count > 0 && groupsObj[0] && groupsObj[0].transform.position.y <= Values.CameraBottomY)       //最下面的到底,代表死亡
        {
            Debug.Log("fail ____----------");
            BattleTempData.Instance.WriteMaxScore();
            _GameState = BallteGameState.Deading;
            TimerManager.Instance.Clear();
            BattleTempData.Instance.gameState = GameState.Deaded;

            playerDeadAnimation();
            TimerManager.Instance.Invoke(OnPlayerAniOver, 1f);
        }
    }