예제 #1
0
 public WayPointStore Provide(Vector2 from,Vector2 target)
 {
     var wayPointStore = new WayPointStore();
     var wayPoint = new WayPoint(target);
     wayPointStore.Store(wayPoint.Id,wayPoint);
     return wayPointStore;
 }
예제 #2
0
 void aiEventProcessor_OnUnitUnderAttack(object sender, OnUnitUnderAttackHandlerArgs args)
 {
     if(MindState != EMindState.Engaged)
     {
         ChangeState(EMindState.Scouting);
         var way = new WayPoint(args.Position);
         WayPointStore.Store(way.Id,way);
     }
 }