Exemplo n.º 1
0
        public override void Dispose()
        {
            if (this.IsDisposed)
            {
                return;
            }
            base.Dispose();

            ReSet();
            res.UnloadBundle(UICowCowAB.CowCow_Prefabs);
            res.UnloadBundle(UICowCowAB.CowCow_Texture);
            smallSettlement?.Dispose();
            bigSettlement?.Dispose();
            gamerComponent?.Dispose();
            chatComponent?.Dispose();
            dissComponent?.Dispose();
            settingComponent?.Dispose();

            smallSettlement  = null;
            bigSettlement    = null;
            gamerComponent   = null;
            chatComponent    = null;
            uiChatVoice      = null;
            dissComponent    = null;
            settingComponent = null;
        }