Ejemplo n.º 1
0
 // Interact with all triggered Collidables (for collidables that have trigger-based rigid bodies
 // instead of physical collisions)
 void InteractAll()
 {
     foreach (GameObject otherObject in activeTriggers)
     {
         Collidable collidable = otherObject.GetComponent <Collidable>();
         if (collidable != null)
         {
             collidable.PlayerInteract(this);
         }
     }
 }