public override void OnEntry() { if (controller.HasNextStep()) { var nextStep = controller.GetNextStep(); controller.RequestLookAt(nextStep); controller.GridPosition = nextStep; } else { controller.NotifyPathFinished(); TerminateMachine(); } }
public override void OnEntry() { if (controller.HasNextStep()) { var nextStep = controller.GetNextStep(); controller.RequestLookAt(nextStep); controller.GridPosition = nextStep; } else { controller.NotifyPathFinished(); TerminateMachine(); } }