Example #1
0
    public void Clear()
    {
        Singleton <CSoundManager> .GetInstance().UnLoadBank("System_Call", CSoundManager.BankType.Battle);

        this.UnRegInBattleEvent();
        Singleton <InBattleMsgMgr> .instance.inbatEntList.Clear();

        DictionaryView <ulong, BubbleTimerEntity> .Enumerator enumerator = this.player_bubbleTime_map.GetEnumerator();
        while (enumerator.MoveNext())
        {
            KeyValuePair <ulong, BubbleTimerEntity> current = enumerator.Current;
            BubbleTimerEntity entity = current.Value;
            if (entity != null)
            {
                entity.Clear();
            }
        }
        this.player_bubbleTime_map.Clear();
        this.contentList = null;
        if (this.m_cdButton != null)
        {
            this.m_cdButton.Clear();
            this.m_cdButton = null;
        }
        this.m_CUIForm    = null;
        this.m_battleForm = null;
        Singleton <CUIManager> .GetInstance().CloseForm(InBattleMsgView_FORM_PATH);
    }
    public void Clear()
    {
        Singleton <CSoundManager> .GetInstance().UnLoadBank("System_Call", CSoundManager.BankType.Battle);

        this.UnRegInBattleEvent();
        Singleton <InBattleMsgMgr> .instance.inbatEntList.Clear();

        DictionaryView <ulong, BubbleTimerEntity> .Enumerator enumerator = this.player_bubbleTime_map.GetEnumerator();
        while (enumerator.MoveNext())
        {
            KeyValuePair <ulong, BubbleTimerEntity> current = enumerator.Current;
            BubbleTimerEntity value = current.get_Value();
            if (value != null)
            {
                value.Clear();
            }
        }
        this.player_bubbleTime_map.Clear();
        this.indexTabTypeMap      = null;
        this.tabList              = null;
        this.reserveList          = null;
        this.shortcutList         = null;
        this.noReceiveNode        = null;
        this.NoMoreReceiveReverse = false;
        this.signalPanelChatBtn   = null;
        if (this.m_cdButton != null)
        {
            this.m_cdButton.Clear();
            this.m_cdButton = null;
        }
        this.m_CUIForm = null;
        Singleton <CUIManager> .GetInstance().CloseForm(InBattleShortcut.InBattleMsgView_FORM_PATH);
    }