Exemple #1
0
 void ShowUIPopUp(string str1, string str2, UIPopupType type)
 {
     object[] obj = new object[5] {
         str1, str2, type, this.gameObject, "OnDefineBtnClick"
     };
     Control.ShowGUI(UIPanleID.UIPopUp, EnumOpenUIType.DefaultUIOrSecond, false, obj);
 }
Exemple #2
0
 protected override void SetUI(params object[] uiParams)
 {
     if (uiParams[2] != null)
     {
         this._type = (UIPopupType)uiParams[2];
     }
     if (uiParams[0] != null)
     {
         this._str1 = uiParams[0].ToString();
     }
     if (uiParams[1] != null)
     {
         this._str2 = uiParams[1].ToString();
     }
     if (uiParams[4] != null)
     {
         _functionName = uiParams[4].ToString();
     }
     if (uiParams[3] != null)
     {
         this._go = uiParams[3] as GameObject;
     }
     base.SetUI(uiParams);
 }