Exemplo 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);
     }
 }
Exemplo 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();
 }
Exemplo 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);
 }