public void ResetLevel() { player.gameObject.GetComponent <Rigidbody2D>().velocity = new Vector2(0, 0); // Stop player's rigid movement buttonManager.SetAmmo(playerShoot.maxAmmo); // reset ammo to max value buttonManager.SetLives(livesManager.maxLives); // reset lives to max value player.transform.position = playerStartPos; // reset player position postGame.SetMainCamActive(true); // reset camera soundManager.KillAudio(); // disable all sounds if (level != 3) { RespawnEntities(); // if not boss level, respawn everything in main gameplay area } }
public void ResetLevel() { player.gameObject.GetComponent <Rigidbody2D>().velocity = new Vector2(0, 0); buttonManager.SetAmmo(playerShoot.maxAmmo); player.transform.position = playerStartPos; postGame.SetMainCamActive(true); }
private void SetUpNewLevel() { postGame.SetMainCamActive(false); if (levelManager.level == 2) // check for boss level { postGame.PlayBossIntermission(); } else { postGame.DisplayIntermission(); } }
private void SetUpNewLevel() { postGame.SetMainCamActive(false); postGame.FadeTextIn(); }