Пример #1
0
        public int RemoveEventListeners()
        {
            DebugLog("Removing event listeners...");
            ChatLog chatLog = ChatLog.Instance_;

            PrivateUtilities.removeParticularSubscriber <WelcomeClient.Data>(chatLog);
            PrivateUtilities.removeParticularSubscriber <SetServerChat.Data>(chatLog);
            var chatInputV2s = PrivateUtilities.getComponents <ChatInputV2>();

            PrivateUtilities.removeParticularSubscribers <SetServerChat.Data, ChatInputV2>(chatInputV2s);
            return(chatInputV2s.Count);
        }