Exemple #1
0
 public void FollowForce(ActorController actor, int slot)
 {
     if (this.followMove == null)
     {
         this.followMove = new MoveStateFollow(this.actorCtrler);
     }
     this.followSlot = slot;
     this.followMove.SetTarget(actor, slot);
     this.SetMoveState(this.followMove, 1);
 }
Exemple #2
0
 private void OnDestroy()
 {
     for (int i = 0; i < this.moveStates.Length; i++)
     {
         this.moveStates[i] = null;
     }
     this.idleMove = null;
     this.followMove = null;
     this.targetMove = null;
 }