コード例 #1
0
 public EnemyStateRoam(EnemySoilder owner, EnemyDebugger debugger) : base(owner, debugger)
 {
     currentWaypoint = FindClosestWaypoint();
     move            = new EnemyMoveNonCombat(owner, currentWaypoint.Position, OnMoveTargetReached, OnPathCreated);
 }
コード例 #2
0
 void OnMoveTargetReached()
 {
     currentWaypoint = GetNextWaypoint();
     move            = CreateNewMoveInstance();
 }