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); }
public void UpdatePlayerBubbleTimer(ulong playerid, uint heroid) { BubbleTimerEntity entity = null; this.player_bubbleTime_map.TryGetValue(playerid, out entity); if (entity == null) { entity = new BubbleTimerEntity(playerid, heroid, InBat_Bubble_CDTime); this.player_bubbleTime_map.Add(playerid, entity); } entity.Start(); }
public void UpdatePlayerBubbleTimer(ulong playerid, uint heroid) { BubbleTimerEntity bubbleTimerEntity = null; this.player_bubbleTime_map.TryGetValue(playerid, ref bubbleTimerEntity); if (bubbleTimerEntity == null) { bubbleTimerEntity = new BubbleTimerEntity(playerid, heroid, InBattleShortcut.InBat_Bubble_CDTime); this.player_bubbleTime_map.Add(playerid, bubbleTimerEntity); } bubbleTimerEntity.Start(); }