Exemple #1
0
 public void StartGame()
 {
     SetInitialValues();
     playerCont = Instantiate(player).GetComponent <PlayerController>();
     UICont.StartGame();
     abilityCont.StartGame(); //spawnCont előtt kell lennie
     StartCoroutine(spawnCont.Create());
     audioCont.SetMusic(true);
     challengeCont.StartGame();
     shopCont.StartGame();
 }
Exemple #2
0
 void onDeath()
 {
     SpawnController.Create();
     Destroy(gameObject);
 }