void Start() { Stan = GameObject.Find("stan").GetComponent <StanControl>(); CubeStanCd = GameObject.Find("CubeStan").GetComponent <Collider>(); popupBox.gameObject.SetActive(false); sword.gameObject.SetActive(false); }
void OnTriggerEnter(Collider other) { if (other.tag == "Player") { StanControl Stan = GameObject.Find("stan").GetComponent <StanControl>(); Stan.playEndSound(); hero.HandDown(); } }