public void SetOn(Enum key, bool value) { TabMaker.Info info = this.GetInfo(key.ToString()); if (info == null) { return; } info.isOn = value; }
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); }
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); }
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(); }