Esempio n. 1
0
 public void SetState(Watch.State state)
 {
     if (this.m_State == state)
     {
         return;
     }
     this.m_State = state;
     this.OnSetState();
 }
Esempio n. 2
0
 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);
 }
Esempio n. 3
0
 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);
         }
     }
 }
Esempio n. 4
0
 public bool IsWatchTab(string state_name)
 {
     Watch.State state = (Watch.State)Enum.Parse(typeof(Watch.State), state_name);
     return(this.m_State == state);
 }