Exemplo n.º 1
0
 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;
     }
 }
Exemplo n.º 2
0
 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;
 }