Ejemplo n.º 1
0
        public static ProdWinRankJudge Instantiate(ProdWinRankJudge prefab, Transform parent, BattleResultModel model, bool isBattleCut)
        {
            ProdWinRankJudge prodWinRankJudge = Object.Instantiate <ProdWinRankJudge>(prefab);

            prodWinRankJudge.get_transform().set_parent(parent);
            prodWinRankJudge.get_transform().set_localPosition(Vector3.get_right() * 2000f);
            prodWinRankJudge.get_transform().localScaleOne();
            prodWinRankJudge.Init(model, isBattleCut);
            return(prodWinRankJudge);
        }
Ejemplo n.º 2
0
        public static ProdWinRankJudge Instantiate(ProdWinRankJudge prefab, Transform parent, BattleResultModel model, bool isBattleCut)
        {
            ProdWinRankJudge prodWinRankJudge = UnityEngine.Object.Instantiate(prefab);

            prodWinRankJudge.transform.parent        = parent;
            prodWinRankJudge.transform.localPosition = Vector3.right * 2000f;
            prodWinRankJudge.transform.localScaleOne();
            prodWinRankJudge.Init(model, isBattleCut);
            return(prodWinRankJudge);
        }
Ejemplo n.º 3
0
        public IEnumerator CreateInstance(bool isPractice)
        {
            _listVeteransReportFleets = new List <UIVeteransReportFleet>();
            for (int i = 0; (float)i < 2f; i++)
            {
                _listVeteransReportFleets.Add(UIVeteransReportFleet.Instantiate(((Component)_prefabVeteransReportFleet).GetComponent <UIVeteransReportFleet>(), base.transform, _listVeteransReportFleetsPos[i], _clsResultModel, (FleetType)i));
                _listVeteransReportFleets[i].CreateInstance();
            }
            yield return(null);

            _prodWinRankJudge = ProdWinRankJudge.Instantiate(((Component)_prefabProdWinRankJudge).GetComponent <ProdWinRankJudge>(), base.transform, _clsResultModel, isBattleCut: false);
            yield return(null);

            _uiBonus             = UIVeteransReportBonus.Instantiate(((Component)_prefabVeteransReportBonus).GetComponent <UIVeteransReportBonus>(), base.transform, _vBounusPos, _clsResultModel, isPractice);
            _uiBonus.panel.alpha = 0f;
            yield return(null);

            _uiMVPShip             = UIVeteransReportMVPShip.Instantiate(((Component)_prefabVeteransReportMVPShip).GetComponent <UIVeteransReportMVPShip>(), base.transform, _vMVPShipAnchorPos, _clsResultModel.MvpShip);
            _uiMVPShip.panel.alpha = 0f;
            yield return(null);
        }