예제 #1
0
 void Start()
 {
     Stan       = GameObject.Find("stan").GetComponent <StanControl>();
     CubeStanCd = GameObject.Find("CubeStan").GetComponent <Collider>();
     popupBox.gameObject.SetActive(false);
     sword.gameObject.SetActive(false);
 }
예제 #2
0
파일: Finished.cs 프로젝트: suminc7/project
    void OnTriggerEnter(Collider other)
    {
        if (other.tag == "Player")
        {
            StanControl Stan = GameObject.Find("stan").GetComponent <StanControl>();
            Stan.playEndSound();

            hero.HandDown();
        }
    }