Execute() 공개 메소드

public Execute ( ) : void
리턴 void
예제 #1
0
 public void ProcessAction()
 {
     if (_currentAction != null && _currentAction.IsFinished == false)
     {
         Debug.Log($"Current action : {_currentAction.GetType()}");
         return;
     }
     if (_characterActions.Any() == false)
     {
         Debug.Log($"Current action : {_currentAction.GetType()}");
         return;
     }
     _currentAction = _characterActions.Dequeue();
     Debug.Log($"Current action : {_currentAction.GetType()}");
     _currentAction.Execute();
 }