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