CharacterAction.Execute C# (CSharp) Method

Execute() public method

public Execute ( ) : void
return 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

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