Esempio n. 1
0
 void OnInteractEvent(Sensor.InteractEvent e)
 {
     if (this.sensor.closestInteractable)
     {
         if (this.debug)
         {
             Trace.Script("Interacting!", this);
         }
         var interactEvent = new Sensor.InteractEvent();
         interactEvent.sensor = this.sensor;
         this.sensor.closestInteractable.gameObject.Dispatch <Sensor.InteractEvent>(interactEvent);
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Received when there's a request to interact with this object
 /// </summary>
 /// <param name="e"></param>
 void OnInteractEvent(Sensor.InteractEvent e)
 {
     this.Activate();
 }
Esempio n. 3
0
 /// <summary>
 /// Received when there's a request to interact with this object.
 /// </summary>
 /// <param name="e"></param>
 void OnInteractEvent(Sensor.InteractEvent e)
 {
     // Signal this object that it's being interacted with
     this.OnInteract(e.sensor);
 }