private void GameSetup() { EnemiesControllerClass.Reset(); EnemiesControllerClass.UpdateEnemiesNumber(level); EnemiesControllerClass.CreateEnemies(); StopAllCoroutines(); StartCoroutine(START_NEW_GAME); }
public void GameSetup() { _player.transform.position = Config.PLAYERS_START_POS; _player.gameObject.SetActive(true); _enemiesController.Reset(); _enemiesController.UpdateEnemiesNumber(_level); _enemiesController.CreateEnemies(); SetGameState(GameState.COUNT_DOWN); Invoke("StartNewGame", GAME_START_TIME); }