CharacterAction.Execute C# (CSharp) 메소드

Execute() 공개 메소드

public Execute ( ) : void
리턴 void
    public virtual void Execute()
    {
    }

Same methods

CharacterAction::Execute ( CharacterObservable, caller ) : void
CharacterAction::Execute ( CharacterObservable, caller, CharacterObservable, chracterToInteractWith ) : void
CharacterAction::Execute ( CharacterObservable, caller, int raiseDefense ) : void

Usage Example

예제 #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();
 }