Ejemplo n.º 1
0
    /** 初始化道具 */
    public void initPropButton(GameObject gameObj, Prop prop, int index)
    {
        GameObject obj = NGUITools.AddChild(gameObj, goodsViewPrefab);

        obj.transform.localScale = new Vector3(1.4f, 1.4f, 1);
        GoodsView goods = obj.GetComponent <GoodsView> ();

        goods.fatherWindow = this;
        goods.linkQualityEffectPoint();
        goods.init(prop, 0);
        goods.onClickCallback = () => {
            UiManager.Instance.openDialogWindow <PropAttrWindow>((win) => {
                win.Initialize(prop);
            });
        };
        if (cardName != null)
        {
            string color = QualityManagerment.getQualityColor(prop.getQualityId());
            cardName.text = color + prop.getName() + "[-]";
            GameObject card_name = NGUITools.AddChild(obj, cardName.gameObject);
            card_name.transform.localScale    = new Vector3(0.8f, 0.8f, 1);
            card_name.transform.localPosition = new Vector3(0, -70, 0);
            card_name.SetActive(true);
        }
    }
Ejemplo n.º 2
0
    /** 初始化秘宝 */
    public void initMagicWeaponButton(GameObject gameObj, MagicWeapon magicWeap, int index)
    {
        GameObject obj = NGUITools.AddChild(gameObj, goodsViewPrefab);

        obj.transform.localScale = new Vector3(1.4f, 1.4f, 1);
        GoodsView goods = obj.GetComponent <GoodsView>();

        goods.fatherWindow = this;
        goods.linkQualityEffectPoint();
        goods.init(magicWeap);
        goods.onClickCallback = goods.DefaultClickEvent;
        //goods.onClickCallback = () => {
        //    TweenAlpha lname = TweenAlpha.Begin(gameObject, 1f, 0);
        //    lname.from = 1;
        //    UiManager.Instance.openWindow<MagicWeaponStrengWindow>((win) => {
        //        win.Initialize(magicWeap, EquipAttrWindow.OTHER, () => {
        //            lname = TweenAlpha.Begin(gameObject, 1.5f, 1);
        //            lname.from = 0;
        //        });
        //    });
        //};
        if (cardName != null)
        {
            string color = QualityManagerment.getQualityColor(magicWeap.getMagicWeaponQuality());
            cardName.text = color + magicWeap.getName() + "[-]";
            GameObject card_name = NGUITools.AddChild(obj, cardName.gameObject);
            card_name.transform.localScale    = new Vector3(0.8f, 0.8f, 1);
            card_name.transform.localPosition = new Vector3(0, -70, 0);
            card_name.SetActive(true);
        }
    }
Ejemplo n.º 3
0
    /** 初始化装备 */
    public void initEquipButton(GameObject gameObj, Equip equip, int index)
    {
        GameObject obj = NGUITools.AddChild(gameObj, goodsViewPrefab);

        obj.transform.localScale = new Vector3(1.4f, 1.4f, 1);
        GoodsView goods = obj.GetComponent <GoodsView> ();

        goods.fatherWindow = this;
        goods.linkQualityEffectPoint();
        goods.init(equip, 0);
        goods.onClickCallback = () => {
            TweenAlpha lname = TweenAlpha.Begin(gameObject, 1f, 0);
            lname.from = 1;
            UiManager.Instance.openWindow <EquipAttrWindow> ((winEquip) => {
                winEquip.Initialize(equip, EquipAttrWindow.OTHER, () => {
                    lname      = TweenAlpha.Begin(gameObject, 1.5f, 1);
                    lname.from = 0;
                });
            });
        };
        if (cardName != null)
        {
            string color = QualityManagerment.getQualityColor(equip.getQualityId());
            cardName.text = color + equip.getName() + "[-]";
            GameObject card_name = NGUITools.AddChild(obj, cardName.gameObject);
            card_name.transform.localScale    = new Vector3(0.8f, 0.8f, 1);
            card_name.transform.localPosition = new Vector3(0, -70, 0);
            card_name.SetActive(true);
        }
    }
Ejemplo n.º 4
0
 /** 初始化顶部的小头像图标按钮 */
 public void init(Card card)
 {
     this.onClickEvent = onItemMoveHander;
     if (contentStarSoulEquitop == null)
     {
         contentStarSoulEquitop = transform.parent.GetComponent <ContentStarSoulEquiTop> ();
     }
     data = card;
     if (data != null)
     {
         if (data.isMainCard())            //如果是主卡
         {
             ResourcesManager.Instance.LoadAssetBundleTexture(UserManager.Instance.self.getIconPath(), icon);
             icon.transform.localScale = new Vector3(0.9f, 0.9f, 0f);
         }
         else
         {
             ResourcesManager.Instance.LoadAssetBundleTexture(ResourcesManager.ICONIMAGEPATH + data.getIconID().ToString(), icon);
             icon.transform.localScale = new Vector3(1f, 1f, 0f);
         }
         bg_Sprite.spriteName = QualityManagerment.qualityIDToIconSpriteName(data.getQualityId());
         if (quality != null)
         {
             quality.spriteName = "quality_" + card.getQualityId();
         }
     }
 }
Ejemplo n.º 5
0
 /// <summary>
 /// 减速
 /// </summary>
 private void speedDown()
 {
     timer.delayTime += 100;
     if (index == checkPoint)
     {
         StartCoroutine(playEffect(index));
         timer.stop();
         timer       = null;
         cycles      = 0;
         isSpeedDown = false;
         if (isStorageFulls(checkPoint))
         {
             isDrawing = false;
             return;
         }
         else
         {
             ShareDrawManagerment.Instance.canDrawTimes -= 1;
             string name = QualityManagerment.getQualityColor(prizeList[index].getPrize().getQuality()) + prizeList[index].getPrize().getPrizeName();
             init();//更新
             UiManager.Instance.createMessageLintWindowNotUnLuck(LanguageConfigManager.Instance.getLanguage("superDraw_18", name, prizeList[index].getPrize().getPrizeNumByInt().ToString()));
             isDrawing = false;
         }
         setDrawbuttonState();
     }
 }
Ejemplo n.º 6
0
    public void init(Card card, CardSample sample, CardPictureWindow win)
    {
        this.sample = sample;
        showCard    = card;
        window      = win;
        if (CardImage != null)
        {
            if (showCard == null)
            {
                ResourcesManager.Instance.LoadAssetBundleTexture("texture/card/1", CardImage);
            }
            else
            {
                ResourcesManager.Instance.LoadAssetBundleTexture(ResourcesManager.CARDIMAGEPATH + sample.imageID, CardImage);
            }
        }
        cardName.text = QualityManagerment.getQualityColor(sample.qualityId) + sample.name;
        int jobId = sample.job;

        jobSign.spriteName = CardManagerment.Instance.qualityIconTextToBackGround(jobId) + "s";

        quality.spriteName = QualityManagerment.qualityIDToString(sample.qualityId) + "Bg";
        updateAttributes();

        cardLv.text = "Lv." + sample.maxLevel + "/" + sample.maxLevel;
        jinhua.text = sample.evoStarLevel + "/" + card.getMaxEvoLevel();

        updateSkill();
        loadTalent();
        //浏览到下一个卡牌的时需要重置容器的位置
        SpringPanel.Begin(panlObj.gameObject, new Vector3(0, 0, 0), 9);
    }
 //初始化,带入3大类技能的升级信息
 public void Initialize(Equip _equip, LevelupInfo info)
 {
     /* 初始化数据 */
     equip       = _equip;
     equipExpSID = EquipmentSampleManager.Instance.getEquipSampleBySid(equip.sid).levelId;
     nowLv       = info.oldLevel;
     targetLv    = info.newLevel;
     tipNowExp   = info.oldExp;
     updateProgressLabel();
     ResourcesManager.Instance.LoadAssetBundleTexture(ResourcesManager.ICONIMAGEPATH + equip.getIconId(), equipImage);
     qualityBack.spriteName = QualityManagerment.qualityIDToIconSpriteName(equip.getQualityId());
     level.text             = "Lv." + info.oldLevel + "/" + equip.getMaxLevel();
     nameLabel.text         = equip.getName();
     AttrChange[] attrsOld = equip.getAttrChanges(info.oldLevel);
     AttrChange[] attrsNew = equip.getAttrChanges(info.newLevel);
     tipProgressLabel.text = "";
     attrLabel1.text       = "";
     attrLabel2.text       = "";
     if (attrsOld != null)
     {
         if (attrsOld.Length > 0 && attrsOld [0] != null)
         {
             attrLabel1.text = "[6E483F]" + attrsOld[0].typeToString() + attrsOld[0].num + "[-][418159] + " + (attrsNew[0].num - attrsOld[0].num);
         }
         if (attrsOld.Length > 1 && attrsOld [1] != null)
         {
             attrLabel2.text = "[6E483F]" + attrsOld[1].typeToString() + attrsOld[1].num + "[-][418159] + " + (attrsNew[1].num - attrsOld[1].num);
         }
     }
     expbar.init(info);
     /** 进度条升级回调 */
     expbar.setLevelUpCallBack(showLevelupSign);
     /** 进度条动画播完回调 */
     expbar.endCall = OnExpBarEnd;
 }
Ejemplo n.º 8
0
 public void init(Card card)
 {
     this.card            = card;
     name.text            = card.getName();
     qualityBg.spriteName = QualityManagerment.qualityIDToIconSpriteName(card.getQualityId());
     ResourcesManager.Instance.LoadAssetBundleTexture(ResourcesManager.ICONIMAGEPATH + card.getIconID().ToString(), icon);
 }
Ejemplo n.º 9
0
    //设置创建按钮信息
    private void setCreatButton(PrizeSample _prize)
    {
        if (_prize == null)
        {
            return;
        }
        else
        {
            prize = _prize;
            icon.gameObject.SetActive(false);
            back.spriteName = QualityManagerment.qualityIDToIconSpriteName(_prize.getQuality());
            switch (prize.type)
            {
            case PrizeType.PRIZE_MONEY:
                ResourcesManager.Instance.LoadAssetBundleTexture(constResourcesPath.MONEY_ICONPATH, icon);
                num.text = "x" + prize.num.ToString();
                break;

            case PrizeType.PRIZE_PROP:
                Prop prop = PropManagerment.Instance.createProp(prize.pSid);
                ResourcesManager.Instance.LoadAssetBundleTexture(ResourcesManager.ICONIMAGEPATH + prop.getIconId(), icon);
                num.text = "x" + prize.num.ToString();
                break;

            case PrizeType.PRIZE_RMB:
                ResourcesManager.Instance.LoadAssetBundleTexture(constResourcesPath.RMB_ICONPATH, icon);
                num.text = "x" + prize.num.ToString();
                break;
            }
            icon.gameObject.SetActive(true);
        }
    }
Ejemplo n.º 10
0
 public void updateInfo()
 {
     if (card != null)
     {
         inbattle.gameObject.SetActive(!hideInBattle && (ArmyManager.Instance.getAllArmyPlayersIds().Contains(card.uid) || ArmyManager.Instance.getAllArmyAlternateIds().Contains(card.uid)));
         ResourcesManager.Instance.LoadAssetBundleTexture(ResourcesManager.CARDIMAGEPATH + card.getImageID(), icon);
         quality.spriteName = QualityManagerment.qualityIDToString(card.getQualityId());
         quality.gameObject.SetActive(true);
         qualityBg.spriteName = QualityManagerment.qualityIDToBackGround(card.getQualityId());
         qualityBg.gameObject.SetActive(true);
         if (jobBg != null)
         {
             jobBg.gameObject.SetActive(true);
         }
         if (hpBg != null)
         {
             hpBg.gameObject.SetActive(true);
         }
         job.text = CardManagerment.Instance.jobIDToString(card.getJob());
         job.gameObject.SetActive(true);
         level.text = "Lv." + card.getLevel();
         level.gameObject.SetActive(true);
     }
     else if (sample != null)
     {
         inbattle.gameObject.SetActive(false);
         ResourcesManager.Instance.LoadAssetBundleTexture(ResourcesManager.CARDIMAGEPATH + sample.imageID, icon);
         quality.spriteName   = QualityManagerment.qualityIDToString(sample.qualityId);
         qualityBg.spriteName = QualityManagerment.qualityIDToBackGround(sample.qualityId);
         job.text             = CardManagerment.Instance.jobIDToString(sample.job);
         level.text           = "Lv.1";
     }
 }
Ejemplo n.º 11
0
    private void updateEquipItem()
    {
        Equip tempEquip = StorageManagerment.Instance.getEquipTypeBySid(noticeContent.getSourceEquipSid());

        if (checkEquipIndex() != 0)
        {
            isHaveEquip = true;
        }

        if (IN_STORE == checkEquipIndex())
        {
            oldEquip = StorageManagerment.Instance.getEquipTypeBySid(noticeContent.getSourceEquipSid());
        }
        else
        {
            oldEquip = EquipManagerment.Instance.createEquip(noticeContent.getSourceEquipSid());
        }
        if (newEquip == null)
        {
            newEquip = EquipManagerment.Instance.createEquip("", noticeContent.getTargetEquipSid(), oldEquip.getEXP(), 0, oldEquip.getrefineEXP());
        }
        if (isHaveEquip)
        {
            noEquipGroup.SetActive(false);
            equipGroup.SetActive(true);
            if (oldEquip != null)
            {
                oldNameLabel.text           = QualityManagerment.getQualityColor(oldEquip.getQualityId()) + "Lv." + oldEquip.getLevel() + oldEquip.getName();
                oldQualitySprite.spriteName = QualityManagerment.qualityIDToIconSpriteName(oldEquip.getQualityId());
                ResourcesManager.Instance.LoadAssetBundleTexture(ResourcesManager.ICONIMAGEPATH + oldEquip.getIconId(), oldIconSprite);
                AttrChange[] attrs = oldEquip.getAttrChanges();
                if (attrs != null)
                {
                    if (attrs.Length > 0 && attrs [0] != null)
                    {
                        oldAttrLabel.text = attrs [0].typeToString() + attrs [0].num;
                    }
                }
            }
            if (newEquip != null)
            {
                newNameLabel.text          = QualityManagerment.getQualityColor(newEquip.getQualityId()) + "Lv." + newEquip.getLevel() + newEquip.getName();
                newQulitySprite.spriteName = QualityManagerment.qualityIDToIconSpriteName(newEquip.getQualityId());
                ResourcesManager.Instance.LoadAssetBundleTexture(ResourcesManager.ICONIMAGEPATH + newEquip.getIconId(), newIconSprite);
                AttrChange[] attrs = newEquip.getAttrChanges();
                if (attrs != null)
                {
                    if (attrs.Length > 0 && attrs [0] != null)
                    {
                        newAttrLabel.text = attrs [0].typeToString() + attrs [0].num;
                    }
                }
            }
        }
        else
        {
            noEquipGroup.SetActive(true);
            equipGroup.SetActive(false);
        }
    }
Ejemplo n.º 12
0
    private ExchangeSample magicExSamle; //神器兑换模板

    public void init(Exchange ex)
    {
        ExchangeSample sample = ex.getExchangeSample();

        this.magicExSamle = sample;
        //按钮显示判断
        int count = ExchangeManagerment.Instance.getCanExchangeNum(ex);

        if (count <= 0)
        {
            buttonExchange.disableButton(true);
        }
        else
        {
            buttonExchange.disableButton(false);
        }
        //数量9240c
        numLabel.text = "[92400c]" + LanguageConfigManager.Instance.getLanguage("store03") + "[-]" + EquipScrapManagerment.Instance.getNumString(sample);
        //存信息到兑换按钮
        buttonExchange.fatherWindow = fawin;
        buttonExchange.updateButton(ex);
        //显示装备
        if (sample.exType == 8)
        {
            MagicWeapon nw = MagicWeaponManagerment.Instance.createMagicWeapon(sample.exchangeSid);
            magicW         = nw;
            nameLabel.text = QualityManagerment.getQualityColor(nw.getMagicWeaponQuality()) + nw.getName();
            if (button == null)
            {
                item      = NGUITools.AddChild(gameObject, goodsViewPrefab);
                item.name = "goodsView";
                button    = item.GetComponent <GoodsView>();
                button.onClickCallback = showMagicWeapon;
            }
            if (button != null && nw != null)
            {
                button.init(nw);
                button.fatherWindow         = fawin;
                button.rightBottomText.text = "";
            }
        }
        else
        {
            Equip equip = EquipManagerment.Instance.createEquip(sample.exchangeSid);
            //名称
            nameLabel.text = QualityManagerment.getQualityColor(equip.getQualityId()) + equip.getName();;
            if (button == null)
            {
                item      = NGUITools.AddChild(gameObject, goodsViewPrefab);
                item.name = "goodsView";
                button    = item.GetComponent <GoodsView>();
            }
            if (button != null && equip != null)
            {
                button.init(equip);
                button.fatherWindow         = fawin;
                button.rightBottomText.text = "";
            }
        }
    }
Ejemplo n.º 13
0
 public void updateButton(Card newCard)
 {
     if (newCard == null)
     {
         cleanButton();
         return;
     }
     else
     {
         card = newCard;
         ResourcesManager.Instance.LoadAssetBundleTexture(ResourcesManager.CARDIMAGEPATH + card.getImageID(), cardImage);
         quality.spriteName = QualityManagerment.qualityIDToString(card.getQualityId());
         level.text         = card.getLevel().ToString();
         sign.spriteName    = CardManagerment.Instance.jobIDToString(card.getJob());
         resetCard();
         if (!win.isSelect(card))
         {
             isChoose = false;
             selectPic.gameObject.SetActive(false);
         }
         else
         {
             isChoose = true;
             selectPic.gameObject.SetActive(true);
         }
     }
 }
Ejemplo n.º 14
0
 public void init(GoddessUnitWindow win, Card selectCard, string index)
 {
     card = selectCard;
     winn = win as GoddessUnitWindow;
     if (card == null)
     {
         lvLabel.gameObject.SetActive(false);
         icon.gameObject.SetActive(false);
         EmptyIcon.gameObject.SetActive(true);
         if (index != "")
         {
             ResourcesManager.Instance.LoadAssetBundleTexture(ResourcesManager.GODDESS_EMTY + index + "_e", EmptyIcon);
         }
         iconBg.gameObject.SetActive(true);
         iconBg.spriteName = "IconBack";
     }
     else
     {
         lvLabel.gameObject.SetActive(true);
         icon.gameObject.SetActive(true);
         iconBg.gameObject.SetActive(true);
         EmptyIcon.gameObject.SetActive(false);
         ResourcesManager.Instance.LoadAssetBundleTexture(ResourcesManager.GODDESS_HEAD2 + card.getImageID() + "_h", icon);
         iconBg.spriteName = QualityManagerment.qualityIDToIconSpriteName(card.getQualityId());
         lvLabel.text      = "Lv." + card.getLevel() + "/" + card.getMaxLevel();
     }
 }
Ejemplo n.º 15
0
    /// <summary>
    /// 添加广播公告
    /// </summary>
    public void addMessageRadio(string name, int vipLevel, string propType, int propSid)
    {
        string qualityName  = "";
        string qualityColor = "";
        string propName     = "";

        if (propType == TempPropType.EQUIPMENT)
        {
            EquipSample equipSample = EquipmentSampleManager.Instance.getEquipSampleBySid(propSid);
            qualityName  = QualityManagerment.getQualityNameByNone(equipSample.qualityId);
            qualityColor = QualityManagerment.getQualityColor(equipSample.qualityId);
            propName     = equipSample.name;
        }
        else if (propType == TempPropType.GOODS)
        {
            PropSample propSample = PropSampleManager.Instance.getPropSampleBySid(propSid);
            qualityName  = QualityManagerment.getQualityNameByNone(propSample.qualityId);
            qualityColor = QualityManagerment.getQualityColor(propSample.qualityId);
            propName     = propSample.name;
        }
        string str1;

        if (vipLevel > 0)
        {
            str1 = "[FF0000]" + LanguageConfigManager.Instance.getLanguage("s0509", name, vipLevel.ToString());
        }
        else
        {
            str1 = "[FF0000]" + name;
        }
        string str2    = qualityColor + qualityName + LanguageConfigManager.Instance.getLanguage("equipName") + propName;
        string message = "[FFFFFF]" + LanguageConfigManager.Instance.getLanguage("s0507", str1) + "[FFFFFF]" + LanguageConfigManager.Instance.getLanguage("s0561", str2);

        RadioManager.Instance.M_addRadioMsg(RadioManager.RADIO_LUCKY_EQUIP_TYPE, message);
    }
Ejemplo n.º 16
0
    public void initWindow(Card oldCard, CallBackMsg call)
    {
        callback = call;
        int value = 0;
        CardBaseAttribute oldCardAttr = CardManagerment.Instance.getCardAllWholeAttr(oldCard);
        BloodPointSample  pointSample = BloodConfigManager.Instance.getBloodPointSampleBySid(CardSampleManager.Instance.getBloodSid(oldCard.sid));

        if (pointSample != null)
        {
            BloodItemSample itemSample = BloodItemConfigManager.Instance.getBolldItemSampleBySid(BloodConfigManager.Instance.getCurrentItemSid(pointSample, oldCard.cardBloodLevel));
            if (itemSample == null)
            {
                return;
            }
            bloodEffect[] effect = itemSample.effects;
            for (int i = 0; i < effect.Length; i++)
            {
                value = effect[i].perAllAttr;
            }
        }
        int[] costs = CommandConfigManager.Instance.getEvoCostByQuality(oldCard.getQualityId());
        oldEvoLevel.text      = oldCard.getEvoLevel() + "";
        newEvoLevel.text      = oldCard.getEvoLevel() + "[FF0000]-" + (oldCard.getEvoLevel() - oldCard.getEvoLevelForBlood(oldCard.getEvoTimes() == 0 ? costs[0] : costs[oldCard.getEvoTimes() - 1])) + "[-]";
        oldCombat.text        = oldCard.getCardCombat() + "";
        newCombat.text        = oldCard.getCardCombat() + "[358C35]+" + value + "%" + "[-]";
        oldQuality.spriteName = QualityManagerment.qualityIDToStringByBG(oldCard.getQualityId());
        newQuality.spriteName = QualityManagerment.qualityIDToStringByBG(oldCard.getQualityId() + 1);
    }
Ejemplo n.º 17
0
 //设置创建按钮信息
 private void setCreatButton(PrizeSample _prize)
 {
     if (_prize == null)
     {
         return;
     }
     else
     {
         prize = _prize;
         icon.gameObject.SetActive(false);
         back.spriteName = QualityManagerment.qualityIDToIconSpriteName(_prize.getQuality());
         count           = StringKit.toInt(prize.num);
         if (prize.type == PrizeType.PRIZE_CARD)
         {
             card = CardManagerment.Instance.createCard(prize.pSid);
         }
         else if (prize.type == PrizeType.PRIZE_EQUIPMENT)
         {
             equip = EquipManagerment.Instance.createEquip(prize.pSid);
         }
         else if (prize.type == PrizeType.PRIZE_MAGIC_WEAPON)
         {
             magicWeapon = MagicWeaponManagerment.Instance.createMagicWeapon(prize.pSid);
         }
         else if (prize.type == PrizeType.PRIZE_PROP)
         {
             prop = PropManagerment.Instance.createProp(prize.pSid);
         }
         else if (prize.type == PrizeType.PRIZE_STARSOUL)
         {
             starSoul = StarSoulManager.Instance.createStarSoul(prize.pSid);
         }
         updateInfo();
     }
 }
Ejemplo n.º 18
0
    void updateCurrentPoint()
    {
        bloodEffect[] effects   = bloodItemSample.effects;
        string        decString = "";

        for (int i = 0; i < effects.Length; i++)
        {
            decString += effects[i].dec;
        }
        if (pointType == 1)
        {
            int currentIndex = BloodConfigManager.Instance.getCurrentBloodMapIndex(chooseCard.sid,
                                                                                   chooseCard.cardBloodLevel);
            int   mapLength  = BloodConfigManager.Instance.getCurrentBloodMap(chooseCard.sid, chooseCard.cardBloodLevel).Length;
            int[] colorQuliq = BloodConfigManager.Instance.getCurrentBloodLvColor(chooseCard.sid, chooseCard.cardBloodLevel);
            if (currentIndex == mapLength - 1)
            {
                if (chooseCard.getQualityId() != QualityType.MYTH)
                {
                    decString += "\n" + LanguageConfigManager.Instance.getLanguage("bloodItemDec6", QualityManagerment.getQualityColorForlv(colorQuliq[0] + 1));
                }
            }
            canOpenPoint.SetActive(true);
            openPoint.SetActive(false);
            canOpenAttr.text = decString;
            string        needDec = "";
            PrizeSample[] ps      = bloodItemSample.condition;
            for (int j = 0; j < ps.Length; j++)
            {
                if (StringKit.toInt(ps[j].num) > ps[j].getPrizeHadNum())
                {
                    needDec += "[FF0000]" + ps[j].getPrizeName() + "*" + ps[j].num + "[-]";
                }
                else
                {
                    needDec += ps[j].getPrizeName() + "*" + ps[j].num;
                }
                if (j < ps.Length - 1)
                {
                    needDec += "\n";
                }
            }
            string evoDec = "";
            if (bloodItemSample.evoLvCondition != 0)
            {
                evoDec = LanguageConfigManager.Instance.getLanguage("bloodEvo", bloodItemSample.evoLvCondition + "");
            }
            if (bloodItemSample.evoLvCondition > chooseCard.getEvoLevel())  //进化等级不够(只显示进化等级这个条件)
            {
                canOpenNeed.text = "[FF0000]" + evoDec;
                return;
            }
            canOpenNeed.text = needDec;//进化等级够了(只显示资源消耗这个条件)
            return;
        }
        canOpenPoint.SetActive(false);
        openAttrLabel.text = decString;
        openlvLabel.text   = QualityManagerment.getQualityColorForBloodItem(colorr, index + 1);
        openPoint.SetActive(false);
    }
Ejemplo n.º 19
0
 public void updateButton(Equip newEquip)
 {
     if (newEquip == null)
     {
         cleanButton();
         return;
     }
     else
     {
         equip = newEquip;
         ResourcesManager.Instance.LoadAssetBundleTexture(ResourcesManager.ICONIMAGEPATH + equip.getIconId(), equipImage);
         level.text    = "Lv." + equip.getLevel().ToString();
         bg.spriteName = QualityManagerment.qualityIDToIconSpriteName(equip.getQualityId());
         resetCard();
         if (!win.isSelect(equip))
         {
             isChoose        = false;
             selectPic.alpha = 0;
         }
         else
         {
             isChoose        = true;
             selectPic.alpha = 1;
         }
     }
 }
Ejemplo n.º 20
0
    public void updateBeast(BeastEvolve chooseItem)
    {
        if (chooseItem == null)
        {
            return;
        }

        if (iscacheAudioOK && AudioManager.Instance.IsAudioOpen)
        {
            playGoddessSound(chooseItem);
        }

        updateSelectedCard(chooseItem);
        changeButton();
        updateCondition(chooseItem);
        level.text = "Lv." + selectedCard.getLevel() + "/" + selectedCard.getMaxLevel();
        int  expSid = selectedCard.getEXPSid();
        long _exp   = selectedCard.getEXP();
        long nowExp = EXPSampleManager.Instance.getNowEXPShow(expSid, _exp);
        long maxExp = EXPSampleManager.Instance.getMaxEXPShow(expSid, _exp);

        expbar.updateValue(nowExp, maxExp);

        if (evolveCard != null && evolveCard.getEXP() > 0)
        {
            CardBaseAttribute oldAttr = CardManagerment.Instance.getCardWholeAttr(evolveCard);
            CardBaseAttribute newAttr = CardManagerment.Instance.getCardWholeAttr(selectedCard);
            hp.text     = oldAttr.getWholeHp().ToString();
            att.text    = oldAttr.getWholeAtt().ToString();
            def.text    = oldAttr.getWholeDEF().ToString();
            mag.text    = oldAttr.getWholeMAG().ToString();
            dex.text    = oldAttr.getWholeAGI().ToString();
            jinhua.text = (evolveCard.getQualityId() - 1).ToString() + "/4";
            hp.text    += "[64ED6E]" + " + " + (newAttr.getWholeHp() - oldAttr.getWholeHp()).ToString() + "[-]";
            att.text   += "[64ED6E]" + " + " + (newAttr.getWholeAtt() - oldAttr.getWholeAtt()).ToString() + "[-]";
            def.text   += "[64ED6E]" + " + " + (newAttr.getWholeDEF() - oldAttr.getWholeDEF()).ToString() + "[-]";
            mag.text   += "[64ED6E]" + " + " + (newAttr.getWholeMAG() - oldAttr.getWholeMAG()).ToString() + "[-]";
            dex.text   += "[64ED6E]" + " + " + (newAttr.getWholeAGI() - oldAttr.getWholeAGI()).ToString() + "[-]";
            evolveCard  = null;
        }
        else
        {
            CardBaseAttribute attr = CardManagerment.Instance.getCardWholeAttr(selectedCard);
            hp.text  = attr.getWholeHp().ToString();
            att.text = attr.getWholeAtt().ToString();
            def.text = attr.getWholeDEF().ToString();
            mag.text = attr.getWholeMAG().ToString();
            dex.text = attr.getWholeAGI().ToString();

            jinhua.text = (selectedCard.getQualityId() - 1).ToString() + "/4";
        }

        titleName = "horStar" + selectedCard.getTitleName(selectedCard.sid);
        setTitle(titleName, selectedCard.getName());
        quality.spriteName = QualityManagerment.qualityIDToStringByBG(selectedCard.getQualityId());
        quality.gameObject.SetActive(true);
        string str = LanguageConfigManager.Instance.getLanguage("s0371");

        InitSkill();
    }
Ejemplo n.º 21
0
    void InitSkill()
    {
        oldExp      = BeastEvolveManagerment.Instance.getHallowExp();
        day         = BeastEvolveManagerment.Instance.getHallowDay();
        count       = BeastEvolveManagerment.Instance.getHallowCount();
        mainSkillLv = BeastEvolveManagerment.Instance.getSkillLv();

        Skill[] mSkill = selectedCard.getSkills();
        if (mSkill == null || mSkill [0] == null)
        {
            ResourcesManager.Instance.LoadAssetBundleTexture(ResourcesManager.SKILLIMAGEPATH + "Skill_Null", mainSkillIcon);
            ResourcesManager.Instance.LoadAssetBundleTexture(ResourcesManager.SKILLIMAGEPATH + "Skill_Null", featuresIcon);
            return;
        }
        if (mainSkillLv == 0)
        {
            mainSkillLv = 1;
        }
        if (mainSkillLv >= mSkill [0].getMaxLevel())
        {
            mainSkillLv = mSkill [0].getMaxLevel();
        }
        ResourcesManager.Instance.LoadAssetBundleTexture(mSkill [0].getIcon(), mainSkillIcon);
        ResourcesManager.Instance.LoadAssetBundleTexture(ResourcesManager.SKILLIMAGEPATH + "Skill_Passive", featuresIcon);
        mainSkillLevel.text    = "Lv." + mainSkillLv;
        mainSkillDescript.text = mSkill [0].getDescribeByLv(mainSkillLv);
        mainSkill.text         = (selectedCard.getQualityId() == 1 ? "[FFFFFF]" : QualityManagerment.getQualityColor(selectedCard.getQualityId())) + mSkill [0].getName();

        featuresText.text     = (selectedCard.getQualityId() == 1 ? "[FFFFFF]" : QualityManagerment.getQualityColor(selectedCard.getQualityId())) + selectedCard.getFeatures() [0];
        featuresDescript.text = selectedCard.getFeatures() [1];

        rushCombat();
    }
Ejemplo n.º 22
0
 private void findAllpart(SuitSample ss)
 {
     for (int i = 0; i < part.Length; i++)
     {
         partBg [i].gameObject.SetActive(false);
         partIco [i].gameObject.SetActive(false);
     }
     for (int i = 0; i < ss.parts.Count; i++)
     {
         EquipSample es = null;
         if (chooseEquip.getQualityId() <= 5)
         {
             es = EquipmentSampleManager.Instance.getEquipSampleBySid(ss.parts [i].ySid);
         }
         else if (chooseEquip.getQualityId() == 6)
         {
             es = EquipmentSampleManager.Instance.getEquipSampleBySid(ss.parts[i].rSid);
         }
         if (es == null)
         {
             continue;
         }
         partBg [i].gameObject.SetActive(true);
         partBg [i].spriteName = QualityManagerment.qualityIDToIconSpriteName(es.qualityId);
         partIco [i].gameObject.SetActive(true);
         ResourcesManager.Instance.LoadAssetBundleTexture(ResourcesManager.ICONIMAGEPATH + es.iconId, partIco [i]);
     }
 }
Ejemplo n.º 23
0
    public void initUI(Chat _chat)
    {
        chat = _chat;
        uid  = chat.uid;
        DateTime dt       = TimeKit.getDateTime(chat.stime);
        string   hourInfo = dt.Hour < 10?"0" + dt.Hour:dt.Hour.ToString();
        string   minInfo  = dt.Minute < 10?"0" + dt.Minute:dt.Minute.ToString();

        time    = "[" + hourInfo + ":" + minInfo + "]";
        type    = getChatType(chat.channelType);
        sname   = "[" + chat.name + "]";
        job     = chat.channelType != 2 ? "" : "[" + getJob(chat.job) + "]";
        content = chat.content;
        if (EXPSampleManager.Instance.getLevel(3, chat.vip) != 0)
        {
            vip = "[Vip" + EXPSampleManager.Instance.getLevel(3, chat.vip) + "]";
        }
        else
        {
            vip = "";
        }

        showSender.fatherWindow = this.fatherWindow;
        showItem.fatherWindow   = this.fatherWindow;
        showSender.showType     = 0;
        showSender.uid          = chat.uid;

        if (ChatManagerment.Instance.getMsgType(chat) == ChatManagerment.MSGTYPE_SAY)
        {
            showItem.showType = 999;
            if (!ChatManagerment.Instance.isSystemMsg(chat))
            {
                showLabel.text = type + sname + job + vip + ":" + content + time;
            }
            else
            {
                showSender.gameObject.SetActive(false);
                showItem.gameObject.SetActive(false);
                showLabel.text = type + content + time;
            }
        }
        else
        {
            if (ChatManagerment.Instance.getMsgType(chat) == ChatManagerment.MSGTYPE_EQUIP)
            {
                showItem.showType = 1;
                showItem.equip    = EquipManagerment.Instance.createEquip(chat.goods);
                showLabel.text    = type + sname + job + vip + ":" + LanguageConfigManager.Instance.getLanguage("s0305")
                                    + QualityManagerment.getQualityColor(showItem.equip.getQualityId()) + "[" + showItem.equip.getName() + "]" + "[-]" + time;
            }
            else if (ChatManagerment.Instance.getMsgType(chat) == ChatManagerment.MSGTYPE_CARD)
            {
                showItem.showType = 2;
                showItem.card     = CardManagerment.Instance.createCardByChatServer(chat.goods);
                showLabel.text    = type + sname + job + vip + ":" + LanguageConfigManager.Instance.getLanguage("s0304")
                                    + QualityManagerment.getQualityColor(showItem.card.card.getQualityId()) + "[" + showItem.card.card.getName() + "]" + "[-]" + time;
            }
        }
        dynamicHeight();
    }
Ejemplo n.º 24
0
    /// <summary>
    /// 加载显示
    /// </summary>
    public void loadShow()
    {
        if (card == null)
        {
            return;
        }
        ResourcesManager.Instance.LoadAssetBundleTexture(ResourcesManager.CARDIMAGEPATH + card.getImageID(), cardimage);
        cardName.text = card.getName();
        UpdateTopBackGround();
        initButton();
        UpdateQualityEffect();
        expBar.reset();
        expBar.updateValue(EXPSampleManager.Instance.getNowEXPShow(card.getEXPSid(), card.getEXP()), EXPSampleManager.Instance.getMaxEXPShow(card.getEXPSid(), card.getEXP()));
//        expLabel.text = EXPSampleManager.Instance.getNowEXPShow(card.getEXPSid(), card.getEXP()) + "/" + EXPSampleManager.Instance.getMaxEXPShow(card.getEXPSid(), card.getEXP());
        jobLabel.spriteName   = CardManagerment.Instance.qualityIconTextToBackGround(card.getJob()) + "s";
        qualityIco.spriteName = QualityManagerment.qualityIDToString(card.getQualityId()) + "Bg";
        qualityIco.alpha      = 1;
        updateAttributes();
        updateSkill();
        parent.setTitle(QualityManagerment.getQualityColor(card.getQualityId()) + card.getName());
        cardLevelLabel.text = "Lv." + card.getLevel() + "/" + card.getMaxLevel();
        evoLabel.spriteName = card.isMainCard() ? "attr_evup" : "attr_ev";
        if (EvolutionManagerment.Instance.getMaxLevel(card) == 0)
        {
            evoTimes.text = LanguageConfigManager.Instance.getLanguage("Evo10");
        }
        else
        {
            evoTimes.text = card.isMainCard() ? card.getSurLevel() + "/" + SurmountManagerment.Instance.getMaxSurLevel(card) : card.getEvoLevel() + "/" + card.getMaxEvoLevel();
        }
    }
Ejemplo n.º 25
0
    public void updatePropess(bool bo, Card card, int type, HeroGuideSample hero)
    {
        this.card = card;
        if (hero.prizeSample[0].type == 7)
        {
            name.text = QualityManagerment.getQualityColor(StringKit.toInt(hero.prizeSample[0].num) + 3) + LanguageConfigManager.Instance.getLanguage("teamEdit_err04l5", StringKit.toInt(hero.prizeSample[0].num) == 1?LanguageConfigManager.Instance.getLanguage("s0076"):LanguageConfigManager.Instance.getLanguage("s0077"));
            info.text = LanguageConfigManager.Instance.getLanguage("missionMain02l");
        }
        else
        {
            info.text = LanguageConfigManager.Instance.getLanguage("missionMain02");

            name.text = QualityManagerment.getQualityColor(card.getQualityId()) + card.getName() + "[-]" + "X" + hero.prizeSample[0].num.ToString();
        }
        if (type == 7)
        {
            ResourcesManager.Instance.LoadAssetBundleTexture(UserManager.Instance.self.getIconPath(), headIcon);
            headIcon.gameObject.transform.localScale = new Vector3(1.05f, 1.05f, 1f);
        }
        else if (type == 5)
        {
            ResourcesManager.Instance.LoadAssetBundleTexture(ResourcesManager.ICONIMAGEPATH + card.getIconID(), headIcon);
        }
        else
        {
            ResourcesManager.Instance.LoadAssetBundleTexture(ResourcesManager.NVSHENHEADPATH + card.getImageID() + "_head", headIcon);
        }
        totalNum = HeroGuideManager.Instance.getTotalNum(hero.missionSid) - 1;
        if (totalNum > 0)
        {
            newNum = (float)hero.stepNum / (float)totalNum;
        }
    }
Ejemplo n.º 26
0
 /// <summary>
 /// 更新拥有形象(强化等级,进阶等级,形象,形象背景)
 /// </summary>
 private void updateCommonInfo()
 {
     if (magicWeapon.getPhaseLv() > 0)
     {
         phaseLv.gameObject.SetActive(true);
         phaseLv.text = "+" + magicWeapon.getPhaseLv().ToString();
     }
     else
     {
         phaseLv.gameObject.SetActive(false);
     }
     magicName.text = QualityManagerment.getQualityColor(magicWeapon.getMagicWeaponQuality()) + magicWeapon.getName();
     ResourcesManager.Instance.LoadAssetBundleTexture(ResourcesManager.ICONIMAGEPATH + magicWeapon.getIconId(), icon);
     strengLv.text      = "Lv." + magicWeapon.getStrengLv().ToString() + "/" + magicWeapon.getMaxStrengLv().ToString();
     icon_bg.spriteName = QualityManagerment.qualityIDtoMagicWeapon(magicWeapon.getMagicWeaponQuality());
     if (starPrefab != null)
     {
         Utils.RemoveAllChild(icon.transform);
         int starLevel = MagicWeaponSampleManager.Instance.getMagicWeaponSampleBySid(magicWeapon.sid).starLevel;
         if (starLevel > 0)
         {
             ShowStars show = NGUITools.AddChild(icon.gameObject, starPrefab).GetComponent <ShowStars>();
             show.initStar(starLevel, MagicWeaponManagerment.USEDBUMAGIC_ATTRSHOW);
         }
     }
     jobType.gameObject.SetActive(true);
     jobBg.gameObject.SetActive(true);
     if (magicWeapon.getMgType() == JobType.POWER)  //力
     {
         jobType.spriteName = "roleType_2s";
     }
     else if (magicWeapon.getMgType() == JobType.MAGIC)    //魔
     {
         jobType.spriteName = "roleType_5s";
     }
     else if (magicWeapon.getMgType() == JobType.AGILE)    //敏
     {
         jobType.spriteName = "roleType_3s";
     }
     else if (magicWeapon.getMgType() == JobType.POISON)    //毒
     {
         jobType.spriteName = "roleType_4s";
     }
     else if (magicWeapon.getMgType() == JobType.COUNTER_ATTACK)    //反
     {
         jobType.spriteName = "roleType_1s";
     }
     else if (magicWeapon.getMgType() == JobType.ASSIST)    //辅
     {
         jobType.spriteName = "roleType_6s";
     }
     else
     {
         jobType.gameObject.SetActive(false);
         jobBg.gameObject.SetActive(false);
     }
     updateAttrChanges();
     updateSkills();
 }
Ejemplo n.º 27
0
    public IEnumerator playBloodEffect(EvoEffectCtrl ctrl, Card main, CallBack callback, string imagePath1, string imagePath2)
    {
        Card newCard = StorageManagerment.Instance.getRole(main.uid);

        ResourcesManager.Instance.LoadAssetBundleTexture(imagePath1 + main.getImageID(), ctrl.main, (obj) => {
            ctrl.main.alpha = 0;
        });
        ResourcesManager.Instance.LoadAssetBundleTexture(imagePath2 + main.getImageID(), ctrl.after, (obj) => {
            ctrl.sub.alpha = 0;
        });
        //ResourcesManager.Instance.LoadAssetBundleTexture(imagePath1 + BloodConfigManager.Instance.getCurrentBloodImage(newCard.sid,newCard.cardBloodLevel), ctrl.sub, (obj) => {
        //    ctrl.after.alpha = 0;
        //});
        ResourcesManager.Instance.LoadAssetBundleTexture(imagePath2 + main.getImageID(), ctrl.sub, (obj) => {
            ctrl.after.alpha = 0;
        });
        yield return(new WaitForSeconds(1.5f));

        if (main.isInSuperEvo())
        {
            EffectManager.Instance.CreateEffectCtrlByCache(effectPoint, "Effect/UiEffect/EvolutionarySuccess_super", null);
        }
        else
        {
            EffectManager.Instance.CreateEffectCtrlByCache(effectPoint, "Effect/UiEffect/EvolutionarySuccess", null);
        }
        yield return(new WaitForSeconds(1.5f));

        qualitySprite.spriteName = QualityManagerment.qualityIDToString(newCard.getQualityId()) + "Bg";
        qualitySprite.gameObject.SetActive(true);

        TweenScale ts = TweenScale.Begin(qualitySprite.gameObject, 0.2f, Vector3.one);

        ts.method = UITweener.Method.EaseIn;
        ts.from   = new Vector3(5, 5, 1);
        EventDelegate.Add(ts.onFinished, () => {
            iTween.ShakePosition(qualitySprite.gameObject, iTween.Hash("amount", new Vector3(0.03f, 0.03f, 0.03f), "time", 0.4f));
            iTween.ShakePosition(qualitySprite.gameObject, iTween.Hash("amount", new Vector3(0.01f, 0.01f, 0.01f), "time", 0.4f));
        }, true);
        bg.gameObject.SetActive(true);
        iTween.MoveTo(ctrl.gameObject, iTween.Hash("position", new Vector3(0.0f, 150.0f, 0.0f), "time", 0.5f, "easetype", "linear", "islocal", true));
        yield return(new WaitForSeconds(1f));

        if (newCard.getEvoLevel() > main.getEvoLevel())
        {
            UiManager.Instance.openDialogWindow <CardAttrLevelInfo>((win) => {
                win.Initialize(main, newCard, callback);
            });
        }
        else
        {
            yield return(new WaitForSeconds(1.5f));

            hideEvoComponent();
            finishWindow();
            callback();
        }
    }
Ejemplo n.º 28
0
 public void init(PrizeSample prize, CallBack <RoleView> onClickCallback)
 {
     this.prize = prize;
     ResourcesManager.Instance.LoadAssetBundleTexture(prize.getIconPath(), icon);
     if (qualityBg != null)
     {
         qualityBg.spriteName = QualityManagerment.qualityIDToBackGround(prize.getQuality());
     }
 }
Ejemplo n.º 29
0
    //设置创建按钮信息
    private void setCreatButton(PrizeSample _prize)
    {
        if (_prize == null)
        {
            return;
        }
        else
        {
            prize = _prize;
            roleButton.gameObject.SetActive(false);
            goodsButton.gameObject.SetActive(false);
            goodsButton.fatherWindow = fatherWindow;

            switch (prize.type)
            {
            case PrizeType.PRIZE_BEAST:
                roleButton.gameObject.SetActive(true);
                Card beast = CardManagerment.Instance.createCard(prize.pSid);
                roleButton.init(beast, fatherWindow, roleButton.DefaultClickEvent);
                break;

            case PrizeType.PRIZE_CARD:
                goodsButton.gameObject.SetActive(true);
                Card card = CardManagerment.Instance.createCard(prize.pSid);
                goodsButton.onClickCallback = () => { CardBookWindow.Show(card, CardBookWindow.SHOW, null); fatherWindow.finishWindow(); };
                goodsButton.init(card);
                break;

            case PrizeType.PRIZE_EQUIPMENT:
                goodsButton.gameObject.SetActive(true);
                Equip equip = EquipManagerment.Instance.createEquip(prize.pSid);
                goodsButton.init(equip, prize.getPrizeNumByInt());
                break;

            case PrizeType.PRIZE_MONEY:
                goodsButton.gameObject.SetActive(true);
                goodsButton.init(prize);
                break;

            case PrizeType.PRIZE_PROP:
                goodsButton.gameObject.SetActive(true);
                Prop prop = PropManagerment.Instance.createProp(prize.pSid);
                goodsButton.init(prop, prize.getPrizeNumByInt());
                break;

            case PrizeType.PRIZE_RMB:
                goodsButton.gameObject.SetActive(true);
                goodsButton.init(prize);
                break;
            }

            if (prizeName != null)
            {
                prizeName.text = QualityManagerment.getQualityColor(prize.getQuality()) + prize.getPrizeName();
            }
        }
    }
Ejemplo n.º 30
0
    /// <summary>
    /// 品质突破的表现
    /// </summary>
    /// <param name="msg"></param>
    private void showQualityEvo()
    {
        ResourcesManager.Instance.LoadAssetBundleTexture("texture/backGround/ChouJiang_BeiJing", tupaoBackGroundTexture);
        tupaoBackGroundTexture.gameObject.SetActive(true);
        showObjEff.SetActive(true);
        combatPoint.SetActive(true);
        ResourcesManager.Instance.LoadAssetBundleTexture(ResourcesManager.CARDIMAGEPATH + choosedCard.getImageID(), effectCard.icon);
        newQuality.spriteName = QualityManagerment.qualityIDToString(choosedCard.getQualityId()) + "Bg";
        TweenPosition tp = TweenPosition.Begin(effectCard.gameObject, 0.3f, effectCard.transform.localPosition);

        tp.from = new Vector3(500, effectCard.transform.localPosition.y, 0);
        EventDelegate.Add(tp.onFinished, () => {
            StartCoroutine(Utils.DelayRun(() => {
                //nextSetp++;//开始第二步
                NGUITools.AddChild(effectCard.gameObject, getEffectByQualiy().gameObject);
                StartCoroutine(Utils.DelayRun(() => {
                    //nextSetp++;//开始下一步
                    getEffectTextByQualiy().gameObject.SetActive(true);
                    StartCoroutine(Utils.DelayRun(() => {
                        getEffectTextByQualiy().gameObject.SetActive(false);
                        //nextSetp++;下一步开始
                        newQuality.alpha = 1;
                        TweenScale ts    = TweenScale.Begin(newQuality.gameObject, 0.3f, Vector3.one);
                        ts.method        = UITweener.Method.EaseIn;
                        ts.from          = new Vector3(5, 5, 1);
                        EventDelegate.Add(ts.onFinished, () => {
                            iTween.ShakePosition(transform.parent.gameObject, iTween.Hash("amount", new Vector3(0.03f, 0.03f, 0.03f), "time", 0.4f));
                            iTween.ShakePosition(transform.parent.gameObject, iTween.Hash("amount", new Vector3(0.01f, 0.01f, 0.01f), "time", 0.4f));
                            StartCoroutine(Utils.DelayRun(() => {
                                //nextSetp++;下一步
                                showEvoUI();
                                TweenScale ts1 = TweenScale.Begin(showObj, 0.3f, Vector3.one);
                                ts1.method     = UITweener.Method.EaseIn;
                                ts1.from       = new Vector3(5, 5, 1);
                                EventDelegate.Add(ts1.onFinished, () => {
                                    iTween.ShakePosition(transform.parent.gameObject, iTween.Hash("amount", new Vector3(0.03f, 0.03f, 0.03f), "time", 0.4f));
                                    iTween.ShakePosition(transform.parent.gameObject, iTween.Hash("amount", new Vector3(0.01f, 0.01f, 0.01f), "time", 0.4f));
                                    StartCoroutine(Utils.DelayRun(() => {
                                        if (BloodManagement.Instance.prizes != null && BloodManagement.Instance.prizes.Length > 0)
                                        {
                                            UiManager.Instance.openDialogWindow <BloodEvoWindow>((win => {
                                                win.Initialize(BloodManagement.Instance.prizes);
                                            }));
                                        }
                                        //nextSetp++;
                                        //initInfo();//初始化下一级突破条件以及界面
                                        MaskWindow.UnlockUI();
                                    }, 0.5f));
                                }, true);
                            }, 1.8f));
                        }, true);
                    }, 1.6f));
                }, 1.5f));
            }, 0.2f));
        }, true);
        return;
    }