private void RemoveLateCommand(IGameCommand gameCommand) { var index = _lateTickCommands.IndexOf(gameCommand); _commands.RemoveAt(index); gameCommand.Dispose(); }
private void RemoveCommand(IGameCommand gameCommand) { var index = _commands.IndexOfValue(gameCommand); _commands.RemoveAt(index); gameCommand.Dispose(); }