一.MobilePartyAI&AgentAI
<1.游戏场景中Agent的AI行为为AgentAI,有常见的跟随,冲锋,坚守等AIBehavior.
<2.大地图中Party的AI行为为MobilePartyAI,有常见的附着,追击等AIBehavior.
二.AgentAI
<1.Team对Formation下达Order指令
OrderController.SetOrderWithPosition()
public enum OrderType
{
Move,
MoveToLineSegment,
MoveToLineSegmentWithHorizontalLayout,
Charge,
ChargeWithTarget,
}
<2.获取选中的Formation,对Formation的成员Unit(Agent)下达指令
获取选中的Formations:OrderController.SelectedFormations
为Foramtion添加Agent