/// <summary> /// Default Move 함수 /// </summary> /// <param name="Direction"> 방향 상수</param> protected void DefaultMoveFunc(int Direction) { if (ManagedUnit == null || ManagedUnit.bActing == true) { return; } if (ActionBuffer.Count > 0) { ManagedUnit.bActing = true; switch (Direction) { case UP: ManagedUnit.AddDesireVector(new Vector3(0, 0, 1)); break; case DOWN: ManagedUnit.AddDesireVector(new Vector3(0, 0, -1)); break; case LEFT: ManagedUnit.AddDesireVector(new Vector3(-1, 0, 0)); break; case RIGHT: ManagedUnit.AddDesireVector(new Vector3(1, 0, 0)); break; default: break; } } }