Exemple #1
0
 public IEnumerator Perform()
 {
     charSelected.SetSelectedForMovement();
     MovementController.instance.PrepareMovementForObject(toMove, charSelected, movementStyle.timeToMove);
     foreach (Vector2 position in positionsToMoveTo)
     {
         EventManager.TriggerEvent(EventNames.MOVEMENT_QUEUED, position);
     }
     yield return(MovementController.instance.ConsumeMovementQueueForObject());
 }
Exemple #2
0
 public IEnumerator Perform()
 {
     //var currentActionPointsAvailable = TurnController.instance.GetActionPointsRemaining();
     //if (currentActionPointsAvailable > 0)
     //{
     charSelected.SetSelectedForMovement();
     MovementController.instance.PrepareMovementForObject(toMove, charSelected, movementStyle.timeToMove);
     BreadCrumbController.instance.InitializeBreadCrumbTrail(startPosition);
     ShowMovementAvailableController.instance.ShowMovementAvailable(tiles, movementStyle.movementAvailableTile);
     //}
     yield return(null);
 }