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); } }
/// <summary> /// Received when there's a request to interact with this object /// </summary> /// <param name="e"></param> void OnInteractEvent(Sensor.InteractEvent e) { this.Activate(); }
/// <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); }