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