示例#1
0
    void Awake()
    {
        instance = this;
        //假数据
//		skAry =  new int[5]{21009,21033,21036,21014,21001};
//        monsterArry = new int[3]{ 10131, 10132, 10133 };
        MiniRole       = new MiniMonsterData();
        MiniRole.attri = 3;
        MiniRole.lv    = 30;
        MiniRole.num   = 10100;
    }
示例#2
0
 public static UIGetGambleResultController CreateGamblePanel(GameObject tparent, System.Action onClose)
 {
     UnityEngine.Object obj = WXLLoadPrefab.GetPrefab(WXLPrefabsName.UIGambleResultPanel);
     if (obj != null)
     {
         GameObject go = Instantiate(obj) as GameObject;
         UIGetGambleResultController fc = go.GetComponent <UIGetGambleResultController> ();
         Transform goTrans = go.transform;
         go.transform.parent        = tparent.transform;
         go.transform.localPosition = Vector3.zero;
         goTrans.localScale         = Vector3.one;
         fc.onCloseResult           = onClose;
         RED.TweenShowDialog(go);
         return(fc);
     }
     return(null);
 }
示例#3
0
 //add by  wxl 赌博结算 在战斗结算之前
 public void ShowGambleResult()
 {
     //   Debug.Log (" show gamble result");
     if (Core.Data.temper.warBattle.gambleResult != null)
     {
         if (mGambleResult == null)
         {
             mGambleResult = UIGetGambleResultController.CreateGamblePanel(go_WinOrLosePos, ShowCalculate);
             mGambleResult.transform.parent        = go_WinOrLosePos.transform;
             mGambleResult.transform.localPosition = Vector3.zero;
             mGambleResult.transform.localScale    = Vector3.one;
             mGambleResult.transform.localRotation = Quaternion.identity;
         }
     }
     else
     {
         this.ShowCalculate();
     }
 }