Esempio n. 1
0
 /// <summary>
 /// This replaces all older delegates rather than adding a new one to the list.
 /// See docs for ()
 /// </summary>
 /// <param name="del">An OnTargetUpdateDelegate</param>
 public void SetOnTargetUpdateDelegate(OnTargetUpdateDelegate del)
 {
     this.onTargetUpdateDelegates = del;
 }
Esempio n. 2
0
 /// <summary>
 /// Add a new delegate to be triggered each frame when a target is being tracked.
 /// For other 'Update' events, see the docs for OnUpdateDelegates()
 /// The delegate signature is:  delegate(TargetList targets)
 /// See TargetTracker documentation for usage of the provided 'Target' in this list.
 /// </summary>
 /// <param name="del">An OnTargetUpdateDelegate</param>
 public void AddOnTargetUpdateDelegate(OnTargetUpdateDelegate del)
 {
     this.onTargetUpdateDelegates += del;
 }
Esempio n. 3
0
 /// <summary>
 /// Removes a OnDetectedDelegate
 /// See docs for ()
 /// </summary>
 /// <param name="del">An OnTargetUpdateDelegate</param>
 public void RemoveOnTargetUpdateDelegate(OnTargetUpdateDelegate del)
 {
     this.onTargetUpdateDelegates -= del;
 }
 /// <summary>
 /// Removes a OnDetectedDelegate
 /// See docs for ()
 /// </summary>
 /// <param name="del">An OnTargetUpdateDelegate</param>
 public void RemoveOnTargetUpdateDelegate(OnTargetUpdateDelegate del)
 {
     this.onTargetUpdateDelegates -= del;
 }
 /// <summary>
 /// This replaces all older delegates rather than adding a new one to the list.
 /// See docs for ()
 /// </summary>
 /// <param name="del">An OnTargetUpdateDelegate</param>
 public void SetOnTargetUpdateDelegate(OnTargetUpdateDelegate del)
 {
     this.onTargetUpdateDelegates = del;
 }
 /// <summary>
 /// Add a new delegate to be triggered each frame when a target is being tracked.
 /// For other 'Update' events, see the docs for OnUpdateDelegates()
 /// The delegate signature is:  delegate(TargetList targets)
 /// See TargetTracker documentation for usage of the provided 'Target' in this list.
 /// </summary>
 /// <param name="del">An OnTargetUpdateDelegate</param>
 public void AddOnTargetUpdateDelegate(OnTargetUpdateDelegate del)
 {
     this.onTargetUpdateDelegates += del;
 }
Esempio n. 7
0
 /// <summary>
 /// Add a new delegate to be triggered each frame when a target is being tracked.
 /// For other 'Update' events, see the docs for OnUpdateDelegates()
 /// The delegate signature is:  delegate(TargetList targets)
 /// See TargetTracker documentation for usage of the provided 'Target' in this list.
 /// **This will only allow a delegate to be added once.**
 /// </summary>
 /// <param name="del">An OnTargetUpdateDelegate</param>
 public void AddOnTargetUpdateDelegate(OnTargetUpdateDelegate del)
 {
     this.onTargetUpdateDelegates -= del;  // Cheap way to ensure unique (add only once)
     this.onTargetUpdateDelegates += del;
 }
        /// <summary>
        /// Add a new delegate to be triggered each frame when a target is being tracked.
        /// For other 'Update' events, see the docs for OnUpdateDelegates()
        /// The delegate signature is:  delegate(TargetList targets)
        /// See TargetTracker documentation for usage of the provided 'Target' in this list.
		/// **This will only allow a delegate to be added once.**
        /// </summary>
        /// <param name="del">An OnTargetUpdateDelegate</param>
        public void AddOnTargetUpdateDelegate(OnTargetUpdateDelegate del)
        {
            this.onTargetUpdateDelegates -= del;  // Cheap way to ensure unique (add only once)
            this.onTargetUpdateDelegates += del;
        }