void LoadNextMinigame() { //Get random minigame string minigame = ChooseRandomMinigame(); //Load it sceneManager.Invoke(minigame, 0f); }
void LoadNextMinigame() { //Get random minigame string minigame = ChooseRandomMinigame(); //Load it sceneManager.Invoke(minigame, 0f); SoundManager.instance.PlayBackground(); }
private void ProcessHit(DamageDealer damageDealer) { health -= damageDealer.getDamageAmount(); gameSession.DecreaseHealth(damageDealer.getDamageAmount()); damageDealer.Hit(); if (health <= 0) { AudioSource.PlayClipAtPoint(deathSFX, Camera.main.transform.position, volume); GameObject explosion = Instantiate(explosionVFX, transform.position, transform.rotation); Destroy(gameObject); sceneManager.Invoke("loadFailScene", 2); } }
void LoadNextMinigame() { //Load it sceneManager.Invoke(nextMinigame, 0f); }