public static UIVeteransReportBonus Instantiate(UIVeteransReportBonus prefab, Transform parent, Vector3 pos, BattleResultModel model, bool isPractice)
        {
            UIVeteransReportBonus uIVeteransReportBonus = Object.Instantiate <UIVeteransReportBonus>(prefab);

            uIVeteransReportBonus.get_transform().set_parent(parent);
            uIVeteransReportBonus.get_transform().set_localPosition(pos);
            uIVeteransReportBonus.get_transform().localScaleOne();
            uIVeteransReportBonus._clsResultModel            = model;
            uIVeteransReportBonus._uiBaseEXPLabel.spriteName = ((!isPractice) ? "exp_txt2" : "exp_txt3");
            uIVeteransReportBonus.Init();
            return(uIVeteransReportBonus);
        }
Beispiel #2
0
        public static UIVeteransReportBonus Instantiate(UIVeteransReportBonus prefab, Transform parent, Vector3 pos, BattleResultModel model, bool isPractice)
        {
            UIVeteransReportBonus uIVeteransReportBonus = UnityEngine.Object.Instantiate(prefab);

            uIVeteransReportBonus.transform.parent        = parent;
            uIVeteransReportBonus.transform.localPosition = pos;
            uIVeteransReportBonus.transform.localScaleOne();
            uIVeteransReportBonus._clsResultModel            = model;
            uIVeteransReportBonus._uiBaseEXPLabel.spriteName = ((!isPractice) ? "exp_txt2" : "exp_txt3");
            uIVeteransReportBonus.Init();
            return(uIVeteransReportBonus);
        }