Esempio n. 1
0
 private void CloseImmediate()
 {
     UnityEngine.Object.Destroy(GUISelectBoxPopUp.mInstance.gameObject);
     GUISelectBoxPopUp.mInstance = null;
 }
Esempio n. 2
0
 public void Init(GUISelectBoxPopUp basepop, int petInfoID, int index)
 {
     this.mBasePop = basepop;
     GameUITools.CreateReward(4, petInfoID, 1, base.transform, true, true, 36f, -7f, -2000f, 20f, 13f, 7f, 0);
     this.index = index;
     UIToggle component = GameUITools.FindGameObject("BG", base.gameObject).GetComponent<UIToggle>();
     UIEventListener expr_5F = UIEventListener.Get(component.gameObject);
     expr_5F.onClick = (UIEventListener.VoidDelegate)Delegate.Combine(expr_5F.onClick, new UIEventListener.VoidDelegate(this.OnBGClick));
     EventDelegate.Add(component.onChange, new EventDelegate.Callback(this.OnChange));
 }
Esempio n. 3
0
 private static void CreateInstance()
 {
     if (GUISelectBoxPopUp.mInstance != null)
     {
         return;
     }
     GameObject gameObject = Res.LoadGUI("GUI/GUISelectBoxPopUp");
     if (gameObject == null)
     {
         global::Debug.LogError(new object[]
         {
             "Res.Load GUI/GUISelectBoxPopUp error"
         });
         return;
     }
     GameObject gameObject2 = NGUITools.AddChild(GameUIManager.mInstance.uiCamera.gameObject, gameObject);
     if (gameObject2 == null)
     {
         global::Debug.LogError(new object[]
         {
             "AddChild GUISelectBoxPopUp error"
         });
         return;
     }
     gameObject2.transform.localPosition = new Vector3(0f, 0f, 3000f);
     GUISelectBoxPopUp.mInstance = gameObject2.AddComponent<GUISelectBoxPopUp>();
 }