// if there is a movement pattern planned, move in that way. public void ChooseMovement() { if (plannedActionData != null) { StartCoroutine(Move(plannedActionData.GetMovementPath(), MovementType.WALK)); ChangeDirection(plannedActionData.GetAbilityDirection()); } hasMoved = true; }