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