Assets.Scripts.Services.Communication.WebSocketService.UnregisterCommand C# (CSharp) Method

UnregisterCommand() public method

public UnregisterCommand ( string commandName, Action callbackMethod ) : void
commandName string
callbackMethod Action
return void
        public void UnregisterCommand(string commandName, Action<CommandDTO> callbackMethod)
        {
            CommandRegistration commandRegistration = registeredCommands[commandName].Find(reg => reg.CallbackMethod == callbackMethod);
            registeredCommands[commandName].Remove(commandRegistration);
        }