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); }
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; }