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