//------------------------------------------------------------------------/ // Events //------------------------------------------------------------------------/ /// <summary> /// Received when this object has been detected /// </summary> /// <param name="e"></param> void OnDetectEvent(StratusSensor.InteractableDetectedEvent e) { // Fill out information about this object e.scanData = this.data; // Inform this object that it has been scanned OnDetect(e.source); }
//------------------------------------------------------------------------/ // Events //------------------------------------------------------------------------/ /// <summary> /// Received when this object is within vicinity of the agent. /// </summary> /// <param name="e"></param> private void OnDetection(StratusSensor.InteractableDetectedEvent e) { this.Activate(); }