private void DeadSequence()
        {
            if (_playerSM.BossHealthBar.GetHealth <= 0)
            {
                _playerSM.ChangeState(_playerSM.WinState);
            }

            if (_playerSM.PlayerHealthBar.GetHealth <= 0)
            {
                _playerSM.ChangeState(_playerSM.LoseState);
            }
        }
 private void CheckFinalLine()
 {
     if (_playerSM.PlayerController.IsFinalLine)
     {
         _playerSM.ChangeState(_playerSM.FightState);
     }
 }
Exemple #3
0
 public void Tick()
 {
     if (Input.GetMouseButtonUp(0))
     {
         _playerSM.StartText.gameObject.SetActive(false);
         _playerSM.ChangeState(_playerSM.RunState);
     }
 }