public void SetState(Watch.State state) { if (this.m_State == state) { return; } this.m_State = state; this.OnSetState(); }
public bool IsWatchTabActive(string state_name) { if (!WatchController.Get().enabled) { return(false); } Watch.State state = (Watch.State)Enum.Parse(typeof(Watch.State), state_name); return(this.m_State == state); }
private void OnSetState() { using (Dictionary <int, WatchData> .KeyCollection.Enumerator enumerator = this.m_Datas.Keys.GetEnumerator()) { while (enumerator.MoveNext()) { Watch.State state = (Watch.State)enumerator.Current; this.m_Datas[(int)state].GetParent().SetActive(this.m_State == state); } } }
public bool IsWatchTab(string state_name) { Watch.State state = (Watch.State)Enum.Parse(typeof(Watch.State), state_name); return(this.m_State == state); }