public void InitView(GameObject cdButton, CUIFormScript formScript) { if ((cdButton != null) && (formScript != null)) { this.m_view.OpenForm(null, false); if ((this.m_cdButton == null) && this.BShouldShowButton()) { cdButton.CustomSetActive(true); this.m_cdButton = new CDButton(cdButton); } else { cdButton.CustomSetActive(false); } this.m_formScript = formScript; } }
public void Clear() { Dictionary <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.UnRegInBattleEvent(); if (this.m_cdButton != null) { this.m_cdButton.Clear(); this.m_cdButton = null; } this.m_view.Clear(); this.m_formScript = null; }