Esempio n. 1
0
        //------------------------------------------------------------------------/
        // Events
        //------------------------------------------------------------------------/
        /// <summary>
        /// Received when this object has been detected by an agent
        /// </summary>
        /// <param name="e"></param>

        void OnDetectEvent(Sensor.DetectionEvent e)
        {
            // Fill out information about this object
            e.scanData = this.data;
            // Inform this object that it has been scanned
            OnDetect(e.sensor);
        }
Esempio n. 2
0
 /// <summary>
 /// Received when this object is within vicinity of the agent.
 /// </summary>
 /// <param name="e"></param>
 void OnDetection(Sensor.DetectionEvent e)
 {
     this.Activate();
 }