Esempio n. 1
0
 private void OnTriggerEnter(Collider other)
 {
     if (other.tag == "Player")
     {
         ani.clip = clip;
         ani.Play();
         Game_manager.set_key_exists(false);
     }
 }
Esempio n. 2
0
 // Use this for initialization
 void Start()
 {
     ani = GetComponent <Animation>();
     Game_manager.set_key_exists(true);
 }