public void Idle() { if (this.idleMove == null) { this.idleMove = new MoveStateIdle(this.actorCtrler); } this.SetMoveState(this.idleMove, 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; }