Ejemplo n.º 1
0
 protected void OnTriggerEnter(Collider other)
 {
     InteractiveController interactiveController = other.gameObject.GetComponent<InteractiveController>();
     if (interactiveController)
     {
         addInteractiveController(interactiveController);
         if (interactive != null)
         {
             interactive.OnInteractEnter(other.gameObject.transform.parent.gameObject);
         }
     }
 }