コード例 #1
0
    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);
        }
    }
コード例 #2
0
 private void ExecuteAll()
 {
     action.Execute();
 }