public void AddOutboundInterceptor(ICommandInterceptor interceptor, Type commandType) { outboundCommandInterceptors.AddOrReplace(commandType, interceptor); }
void Start() { webSocketService = FindObjectOfType<WebSocketService>(); webSocketService.AddOutboundInterceptor(this, typeof(BossAttackDTO)); webSocketService.AddInboundInterceptor(this, typeof(BossStatusUpdateDTO)); }