Ejemplo n.º 1
0
 private void OnTriggerEnter(Collider other)
 {
     Debug.Log("Enter");
     if (other.gameObject.tag == "Door")
     {
         panel.WalkDoor(true);
     }
     if (other.gameObject.tag == "Object")
     {
         panel.SwapBool(true, other.GetComponent <Keys>().Kstruct);
     }
     if (other.gameObject.tag == "Clock")
     {
         panel.ShowClock(true);
     }
     if (other.gameObject.tag == "Safe")
     {
         panel.ShowSafe(true);
     }
 }