Esempio n. 1
0
 void OnTriggerExit(Collider other)
 {
     foreach (GameObject target in targets)
     {
         OpenDoor oper = target.GetComponent <OpenDoor>();
         if (oper != null)
         {
             oper.Deactivate();
         }
     }
 }