public void ChangeCCState(CC_Manager.CCState state)
 {
     if (CC_ButtonSettings._instance != null)
         CC_ButtonSettings._instance.Disable();
     currImgHandler.Disable();
     currURLHandler.Disable();
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Awake function, sets singleton reference
 /// </summary>
 void Awake()
 {
     if (_instance != null)
     {
         Destroy(_instance);
         _instance = this;
     }
     else
     {
         _instance = this;
     }
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Awake function, sets singleton reference
 /// </summary>
 void Awake()
 {
     if (_instance != null) {
         Destroy (_instance);
         _instance = this;
     } else _instance = this;
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Initialize the CC_Menu, pass a panelPrefab that the CC_Menu will use as a parent to the buttons
 /// pass a list of CC_Manager.CCStates that will determine when this menu can be rendered
 /// and a menu name that can be referenced in CC_Manager.GetMenuByName()
 /// </summary>
 public void Initialize(GameObject panelPrefab, CC_Manager.CCState[] states, string menuName)
 {
     GameObject obj = Instantiate(panelPrefab) as GameObject;
     myPanel = obj.transform;
     myPanel.transform.SetParent(UIManager._instance.GetMyCanvas(0), false);
     myPanel.name = menuName;
     foreach (CC_Manager.CCState s in states)
         renderStates.Add(s);
 }