protected virtual IEnumerator MoveState() { yield return(new WaitForEndOfFrame()); //print("Updating whatever moveState is: " + movementMethod); for (;;) { movementMethod.UpdateState(); if (action.CanExecute()) { action.Execute(); yield break; } yield return(null); } }
private void ExecuteAll() { action.Execute(); }