Assets.Scripts.Services.Communication.WebSocketService.UnregisterCommand C# (CSharp) 메소드

UnregisterCommand() 공개 메소드

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