Exemple #1
0
 public void SetPointerVisibility(GameObject go, Boolean isVisible)
 {
     if (this.attachList.ContainsKey(go))
     {
         UIPointer uipointer = this.attachList[go];
         uipointer.SetActive(isVisible);
     }
 }
Exemple #2
0
 public void SetAllPointerVisibility(Boolean isVisible)
 {
     foreach (KeyValuePair <GameObject, UIPointer> keyValuePair in this.attachList)
     {
         UIPointer value = keyValuePair.Value;
         value.SetActive(isVisible);
         if (!isVisible)
         {
             Singleton <HelpDialog> .Instance.HideDialog();
         }
         else if (isVisible && ButtonGroupState.HelpEnabled)
         {
             ButtonGroupState component = keyValuePair.Key.GetComponent <ButtonGroupState>();
             if (component != (UnityEngine.Object)null && component.Help.Enable)
             {
                 Singleton <HelpDialog> .Instance.ShowDialog();
             }
         }
     }
 }