public void Resetter() { BossBehaviour bossBehaviour = boss.GetComponent <BossBehaviour>(); ResetScreen.SetActive(false); //resetting boss battle BossTrigger.bossMusicPlaying = false; if (bossDefeated == false) { bossBehaviour.bossHP = 3; bossBehaviour.BossRespawn(); FindObjectOfType <AudioManager>().Play("MainTheme"); } else { FindObjectOfType <AudioManager>().Play("EndingTheme"); } //Checkpoint respawn Player.transform.position = respawnPoint; //Enemies respawnen foreach (GameObject enms in allEnemies) { enms.SetActive(true); } scriptedEvent = false; }