Example #1
0
 protected virtual void OnNextWaypoint(CaveBotEventArgs e)
 {
     if (NextWaypoint != null)
     {
         NextWaypoint(this, e);
     }
 }
Example #2
0
 protected virtual void OnWaypointProcessed(CaveBotEventArgs e)
 {
     if (WaypointProcessed != null)
     {
         WaypointProcessed(this, e);
     }
 }
Example #3
0
 void CaveBot_WaypointProcessed(object sender, CaveBotEventArgs e)
 {
     e.Waypoint.Active = false;         
     CanProcessNextWpt = true;
 }
Example #4
0
 void CaveBot_NextWaypoint(object sender, CaveBotEventArgs e)
 {
     e.Waypoint.AttemptToRun = 0;
     CurrentID++;            
 }