public void RunCommands() { if (_currentCommand != null && _currentCommand.isRunning) { return; } if (CommandList.Count == 0) { IsCommandsRunning = false; return; } _currentCommand = CommandList.Dequeue(); _currentCommand.Execute(); }