Beispiel #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();
 }
Beispiel #2
0
 void onDeath()
 {
     SpawnController.Create();
     Destroy(gameObject);
 }