public void DisableBossSceneNotSurvival() { BossScene.SetActive(false); BossBar.SetActive(true); FindObjectOfType <BossHealthBar> ().enabled = true; Portal.SetActive(true); }
public void DisableBossScene() { BossScene.SetActive(false); BossBar.SetActive(true); FindObjectOfType <MonsterRespawn> ().BossRespawn(); FindObjectOfType <AudioManager> ().PlayAudio("Respawn"); FindObjectOfType <LookAt> ().SetTarget(FindObjectOfType <MonsterRespawn> ().bossPoint.gameObject); FindObjectOfType <StopTargets> ().ScriptsState(false); FindObjectOfType <StopTargets> ().Invoke("EnableScripts", 2f); }
public void BossTime() { BossScene.SetActive(true); if (SceneManager.GetActiveScene().buildIndex == 1) { Invoke("DisableBossScene", 2.5f); } else if (SceneManager.GetActiveScene().buildIndex == 2) { Invoke("DisableBossSceneNotSurvival", 2.5f); } }