예제 #1
0
 public void SetOn(Enum key, bool value)
 {
     TabMaker.Info info = this.GetInfo(key.ToString());
     if (info == null)
     {
         return;
     }
     info.isOn = value;
 }
예제 #2
0
 public TabMaker.Info GetInfo(string key)
 {
     for (int index = 0; index < this.m_InfoList.Count; ++index)
     {
         TabMaker.Info info = this.m_InfoList[index];
         if (info != null && info.element != null && info.element.key == key)
         {
             return(info);
         }
     }
     return((TabMaker.Info)null);
 }
예제 #3
0
 public TabMaker.Info GetOnIfno()
 {
     for (int index = 0; index < this.m_InfoList.Count; ++index)
     {
         TabMaker.Info info = this.m_InfoList[index];
         if (info != null && info.tgl.get_isOn())
         {
             return(info);
         }
     }
     return((TabMaker.Info)null);
 }
예제 #4
0
 public void Destroy()
 {
     for (int index = 0; index < this.m_InfoList.Count; ++index)
     {
         TabMaker.Info info = this.m_InfoList[index];
         if (info != null && UnityEngine.Object.op_Inequality((UnityEngine.Object)info.node, (UnityEngine.Object)null))
         {
             UnityEngine.Object.Destroy((UnityEngine.Object)info.node);
         }
     }
     this.m_InfoList.Clear();
 }