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