示例#1
0
    public void DisableBossSceneNotSurvival()
    {
        BossScene.SetActive(false);
        BossBar.SetActive(true);

        FindObjectOfType <BossHealthBar> ().enabled = true;
        Portal.SetActive(true);
    }
示例#2
0
    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);
    }
示例#3
0
    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);
        }
    }