示例#1
0
 public override void Execute()
 {
     if (GameManager.Instance.EndGame)
     {
         _machine.ChangeState <EndGameState>();
     }
     _machine.Score.text = $"{GameManager.Instance.Score}";
 }
示例#2
0
 private void Play()
 {
     _machine.ChangeState <GameState>();
 }
示例#3
0
 private void Resume()
 {
     _machine.ChangeState <GameState>();
 }
示例#4
0
 private void TryAgain()
 {
     GameManager.Instance.Score = 0;
     _machine.ChangeState <GameState>();
 }