Exemplo n.º 1
0
    public void RunCommands()
    {
        if (_currentCommand != null && _currentCommand.isRunning)
        {
            return;
        }

        if (CommandList.Count == 0)
        {
            IsCommandsRunning = false;
            return;
        }

        _currentCommand = CommandList.Dequeue();
        _currentCommand.Execute();
    }