Exemplo n.º 1
0
 private void OnTriggerExit2D(Collider2D collision)
 {
     if (collision.CompareTag(BallTag))
     {
         _gameController.ChangeGameState(GameState.IN_GAME);
         sentry             = true;
         collider.isTrigger = false;
     }
 }
Exemplo n.º 2
0
 private void StartGame()
 {
     _gameController.ChangeGameState(GameState.PRE_GAME);
 }
Exemplo n.º 3
0
 public void RestartGame()
 {
     EndGame();
     _gameController.ChangeGameState(GameState.PRE_GAME);
 }