예제 #1
0
    void Start()
    {
        SceneManagerDontDestroy = GameObject.Find("SceneManager").GetComponent <SceneManagerDontDestroy>();

        LoosePanel.SetActive(false);
        WinPanel.SetActive(false);

        Begin();

        countdownText.text = timeRemaining.ToString();

        TextBoyDisplay.text = score.ToString();

        for (int i = 0; i < _pentacle.Length; i++)
        {
            _pentacle[i].fillAmount = 0;
        }
        _pentacleUI.fillAmount = 0;

        foreach (var gameobject in GameObject.FindGameObjectsWithTag("VillageDeadAnimation"))
        {
            particleSystemDeadAnim.Add(gameobject);
        }

        foreach (var gameobject in GameObject.FindGameObjectsWithTag("VillageDead"))
        {
            AnimDemonFinAnim.Add(gameobject);
        }
    }
 void Start()
 {
     animator.enabled        = false;
     SceneManagerDontDestroy = GameObject.Find("SceneManager").GetComponent <SceneManagerDontDestroy>();
 }