コード例 #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
ファイル: InfanteryMind.cs プロジェクト: Ostblock/Ostzone
 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);
     }
 }