Ejemplo n.º 1
0
    private void showNewInfo(Card oldCard, Card newCard)
    {
        CardBaseAttribute attrNew = CardManagerment.Instance.getCardAllWholeAttr(newCard);
        CardBaseAttribute attr    = CardManagerment.Instance.getCardAllWholeAttr(oldCard);

        newMsgLabel[0].text = attr.getWholeHp().ToString();
        newMsgLabel[1].text = attr.getWholeAtt().ToString();
        newMsgLabel[2].text = attr.getWholeDEF().ToString();
        newMsgLabel[3].text = attr.getWholeMAG().ToString();
        newMsgLabel[4].text = attr.getWholeAGI().ToString();
        newMsgLabel[5].text = "Lv." + oldCard.getMaxLevel();
        TweenLabelNumber tl = TweenLabelNumber.Begin(combat.gameObject, 0.5f, newCard.getCardCombat());

        //		combat.text =  newCard.getCardCombat ().ToString();
        newAddMsgLabel[0].text = (attrNew.getWholeHp() - attr.getWholeHp()) >= 0 ? " + " + (attrNew.getWholeHp() - attr.getWholeHp()) : (attrNew.getWholeHp() - attr.getWholeHp()) + "";
        newAddMsgLabel[1].text = (attrNew.getWholeAtt() - attr.getWholeAtt()) >= 0 ? " + " + (attrNew.getWholeAtt() - attr.getWholeAtt()) : (attrNew.getWholeAtt() - attr.getWholeAtt()) + "";
        newAddMsgLabel[2].text = (attrNew.getWholeDEF() - attr.getWholeDEF()) >= 0 ? " + " + (attrNew.getWholeDEF() - attr.getWholeDEF()) : (attrNew.getWholeDEF() - attr.getWholeDEF()) + "";
        newAddMsgLabel[3].text = (attrNew.getWholeMAG() - attr.getWholeMAG()) >= 0 ? " + " + (attrNew.getWholeMAG() - attr.getWholeMAG()) : (attrNew.getWholeMAG() - attr.getWholeMAG()) + "";
        newAddMsgLabel[4].text = (attrNew.getWholeAGI() - attr.getWholeAGI()) >= 0 ? " + " + (attrNew.getWholeAGI() - attr.getWholeAGI()) : (attrNew.getWholeAGI() - attr.getWholeAGI()) + "";
        newAddMsgLabel[5].text = (newCard.getMaxLevel() - oldCard.getMaxLevel()) >= 0 ? " + " + (newCard.getMaxLevel() - oldCard.getMaxLevel()) : (newCard.getMaxLevel() - oldCard.getMaxLevel()) + "";
        int addQ = newCard.getQualityId() - oldCard.getQualityId();

        if (addQ != 0)
        {
            addQuality.text = LanguageConfigManager.Instance.getLanguage("beastSummonShow11") + "+" + addQ;
        }
        else
        {
            addQuality.text = "";
        }
        buttonSkills[1].initSkillData(newCard.getSkills()[0], ButtonSkill.STATE_LEARNED);
    }
Ejemplo n.º 2
0
    private void playerEffect(UILabel _labelTitle, UILabel _labelDesc, int _desc, int index)
    {
        MaskWindow.LockUI();
        _labelTitle.text = "+";
        TweenScale ts = TweenScale.Begin(_labelTitle.gameObject, 0.1f, Vector3.one);

        ts.method       = UITweener.Method.EaseIn;
        ts.from         = new Vector3(5, 5, 1);
        _labelDesc.text = "";
        TweenScale ts2 = TweenScale.Begin(_labelDesc.gameObject, 0.1f, Vector3.one);

        ts2.method = UITweener.Method.EaseIn;
        ts2.from   = new Vector3(5, 5, 1);
        EventDelegate.Add(ts2.onFinished, () => {
            TweenLabelNumber tln = TweenLabelNumber.Begin(_labelDesc.gameObject, 0.1f, _desc);
            tln.from             = 0;
            EventDelegate.Add(tln.onFinished, () => {
                GameObject obj              = Create3Dobj("Effect/Other/Flash").obj;
                obj.transform.parent        = _labelDesc.transform;
                obj.transform.localScale    = Vector3.one;
                obj.transform.localPosition = new Vector3(0, 0, -600);
                StartCoroutine(Utils.DelayRun(() =>
                {
                    beginReSuchData(_desc, index, _labelTitle);
                }, 0.1f));
            }, true);
        }, true);
    }
 /// <summary>
 /// 飘红字
 /// </summary>
 private void updateIncNum()
 {
     AttrChangeSample[] oldattrs = oldStarSoul.getAttrChangesByAll();
     AttrChangeSample[] newattrs = starSoul.getAttrChangesByAll();
     string[]           oldNum   = DescribeManagerment.getDescribeParam(oldStarSoul.getLevel(), oldattrs);
     string[]           newNum   = DescribeManagerment.getDescribeParam(starSoul.getLevel(), newattrs);
     TweenLabelNumber[] tlns     = new TweenLabelNumber[newNum.Length];
     for (int i = 0; i < newNum.Length; i++)
     {
         incNumm[i] += StringKit.toInt(newNum[i]) - StringKit.toInt(oldNum[i]);
         addLabels[i].gameObject.SetActive(true);
         addLabels[i].transform.localPosition = starInfo1.transform.localPosition + new Vector3(Math.Max(starInfo1.width, starInfo.width) + 10f, i * (-20f) + 10, 0f);
         incLabels[i].gameObject.SetActive(true);
         incLabels[i].transform.localPosition = addLabels[i].transform.localPosition + new Vector3(addLabels[i].width + 10f, (-3f), 0f);
         if (incNumm[i] > 0)
         {
             tlns[i] = TweenLabelNumber.Begin(incLabels[i].gameObject, 0.5f, incNumm[i]);
             EventDelegate.Add(tlns[i].onFinished, () => {
                 incNumm = new int[3];
                 addLabels[i].gameObject.SetActive(false);
                 incLabels[i].gameObject.SetActive(false);
                 incLabels[i].text = "0";
             }, true);
         }
     }
 }
Ejemplo n.º 4
0
    private void showNumEffect(UILabel _labelDesc, int temp, int num)
    {
        TweenLabelNumber tln = TweenLabelNumber.Begin(_labelDesc.gameObject, 0.5f, num);

        tln.from = temp;
        EventDelegate.Add(tln.onFinished, () => {
        }, true);
    }
Ejemplo n.º 5
0
    /// <summary>
    /// 刷新数据
    /// </summary>
    void beginReSuchData(int desc, int index, UILabel titleLabel)
    {
        TweenLabelNumber tll = TweenLabelNumber.Begin(attrLabel[index].gameObject, 1f, desc + StringKit.toInt(attrLabel[index].text));

        tll.from = StringKit.toInt(attrLabel[index].text);
        EventDelegate.Add(tll.onFinished, () =>
        {
            titleLabel.text = "";
            updateCardData();
            //MaskWindow.UnlockUI();
        }, true);
    }
Ejemplo n.º 6
0
 public void updateMetr(int dec)
 {
     if (dec > 0)
     {
         meritAddGroup.transform.localPosition = new Vector3(lblMerit.transform.localPosition.x + lblMerit.width + 10, meritAddGroup.transform.localPosition.y, meritAddGroup.transform.localPosition.z);
         meritAddGroup.SetActive(true);
         TweenLabelNumber tln2 = TweenLabelNumber.Begin(meritAddLabel.gameObject, 0.3f, dec);
         EventDelegate.Add(tln2.onFinished, () => {
             StartCoroutine(Utils.DelayRun(() => {
                 lblMerit.text = LanguageConfigManager.Instance.getLanguage("Arena06") + UserManager.Instance.self.merit;
                 meritAddGroup.SetActive(false);
             }, 1f));
         }, true);
     }
     IncAttributeGlobal.Instance.removeAttribute(AttributeGlobalCommon.INC_ATTRIBUTES_ARENA_MERIT);
 }
Ejemplo n.º 7
0
    private void PlayerAwardDataEffect(int isWin)
    {
        int integralDesc = IncAttributeGlobal.Instance.getIntAttribute(AttributeGlobalCommon.INC_ATTRIBUTES_ARENA_INTEGRAL);

        if (integralDesc >= 0 && isWin != -1)
        {
            integralDesc = ArenaManager.instance.self.integral - integralDesc;
            if (integralDesc > 0)
            {
                integralAddGroup.transform.localPosition = new Vector3(lblIntegral.transform.localPosition.x + lblIntegral.width + 10, integralAddGroup.transform.localPosition.y, integralAddGroup.transform.localPosition.z);
                integralAddGroup.SetActive(true);
                TweenLabelNumber tln2 = TweenLabelNumber.Begin(integralAddLabel.gameObject, 0.3f, integralDesc);
                EventDelegate.Add(tln2.onFinished, () => {
                    StartCoroutine(Utils.DelayRun(() => {
                        lblIntegral.text = LanguageConfigManager.Instance.getLanguage("Arena05") + arenaManager.self.integral;
                        integralAddGroup.SetActive(false);
                    }, 1f));
                }, true);
            }
            IncAttributeGlobal.Instance.removeAttribute(AttributeGlobalCommon.INC_ATTRIBUTES_ARENA_INTEGRAL);
        }
        int meritDesc = IncAttributeGlobal.Instance.getIntAttribute(AttributeGlobalCommon.INC_ATTRIBUTES_ARENA_MERIT);

        if (meritDesc >= 0 && isWin != -1)
        {
            meritDesc = UserManager.Instance.self.merit - meritDesc;
            updateMetr(meritDesc);
        }
        string str = null;

        if (isWin == 0)
        {
            str = LanguageConfigManager.Instance.getLanguage("ArenaAuditions01", integralDesc.ToString(), meritDesc.ToString());
        }
        else if (isWin == 1)
        {
            str = LanguageConfigManager.Instance.getLanguage("ArenaAuditions02", integralDesc.ToString(), meritDesc.ToString());
        }
        this.isWin = -1;
        if (!string.IsNullOrEmpty(str))
        {
            TextTipWindow.ShowNotUnlock(str);
        }
    }
Ejemplo n.º 8
0
    private void playEffect(int debrisNumber)
    {
        GameObject obj = NGUITools.AddChild(flyContentPoint, strengEffectPerfab);

        obj.transform.localScale    = new Vector3(0.92f, 1f, 1f);
        obj.transform.localPosition = new Vector3(150f, -636f, 0);
        obj.transform.localRotation = new Quaternion(-26, 180f, -56f, 1f);
        debrisGetDesc.SetActive(true);
        debrisGetText.text = "[FF0000]" + "+";
        TweenLabelNumber tln = TweenLabelNumber.Begin(debrisGetValue.gameObject, 0.1f, debrisNumber);

        StartCoroutine(Utils.DelayRun(() =>
        {
            if (flyContentPoint.transform.childCount > 0)
            {
                Utils.RemoveAllChild(flyContentPoint.transform);
            }
            debrisGetDesc.SetActive(false);
            debrisGetValue.text = "0";
        }, 1.95f));
    }
Ejemplo n.º 9
0
    private void numEffect(UILabel _labelNext, UILabel _labelDesc, int _desc, int _nextDesc)
    {
        GameObject obj = Create3Dobj("Effect/Other/Flash").obj;

        obj.transform.parent        = _labelDesc.transform;
        obj.transform.localScale    = Vector3.one;
        obj.transform.localPosition = new Vector3(0, 0, -600);

        TweenLabelNumber tln = TweenLabelNumber.Begin(_labelNext.gameObject, 0.2f, _nextDesc);

        tln.from = StringKit.toInt(_labelNext.text);
//		EventDelegate.Add (tln.onFinished, () => {
//			_labelNext.gameObject.SetActive (false);
//		},true);
        TweenLabelNumber tln2 = TweenLabelNumber.Begin(_labelDesc.gameObject, 0.2f, _desc);

        tln2.from = StringKit.toInt(_labelDesc.text);
        EventDelegate.Add(tln2.onFinished, () => {
            StartCoroutine(Utils.DelayRun(() => {
                nextSetp++;
            }, 0.1f));
        }, true);
    }
Ejemplo n.º 10
0
 void Update()
 {
     if (setp == nextSetp)
     {
         return;
     }
     //评级
     if (setp == 0)
     {
         if (isUpdateRecord)
         {
             ratingContent.SetActive(true);
             TweenScale ts = TweenScale.Begin(recordIcon.gameObject, 0.15f, Vector3.one);
             ts.method = UITweener.Method.EaseIn;
             ts.from   = new Vector3(5, 5, 1);
             EventDelegate.Add(ts.onFinished, () =>
             {
                 iTween.ShakePosition(recordIcon.gameObject, iTween.Hash("amount", new Vector3(0.03f, 0.03f, 0.03f), "time", 0.4f));
                 iTween.ShakePosition(recordIcon.gameObject, iTween.Hash("amount", new Vector3(0.01f, 0.01f, 0.01f), "time", 0.4f));
                 StartCoroutine(Utils.DelayRun(() =>
                 {
                     NextSetp();
                 }, 0.1f));
             }, true);
         }
         else
         {
             NextSetp();
         }
     }
     else if (setp == 1)
     {
         generalAwardContent.SetActive(true);
         TweenPosition tp = TweenPosition.Begin(generalAwardContent, 0.15f, generalAwardContent.transform.localPosition);
         tp.from = new Vector3(-500, generalAwardContent.transform.localPosition.y, 0);
         EventDelegate.Add(tp.onFinished, () => {
             TweenLabelNumber tln = TweenLabelNumber.Begin(currentNumValue.gameObject, 0.15f, currentPracticePoint);
             EventDelegate.Add(tln.onFinished, () => {
                 GameObject obj              = Create3Dobj("Effect/Other/Flash").obj;
                 obj.transform.parent        = currentNumValue.transform;
                 obj.transform.localScale    = Vector3.one;
                 obj.transform.localPosition = new Vector3(0, 0, -600);
             }, true);
             tln = TweenLabelNumber.Begin(historyNumValue.gameObject, 0.15f, historyPracticeHightPoint);
             EventDelegate.Add(tln.onFinished, () => {
                 GameObject obj              = Create3Dobj("Effect/Other/Flash").obj;
                 obj.transform.parent        = historyNumValue.transform;
                 obj.transform.localScale    = Vector3.one;
                 obj.transform.localPosition = new Vector3(0, 0, -600);
             }, true);
             StartCoroutine(Utils.DelayRun(() => {
                 NextSetp();
             }, 0.15f));
         }, true);
     }
     else if (setp == 2)
     {
         closeButton.SetActive(true);
         MaskWindow.UnlockUI();
     }
     setp++;
 }
Ejemplo n.º 11
0
    void Update()
    {
        Rotation_1.transform.localRotation = Quaternion.AngleAxis(angel, Vector3.forward);
        angel += 0.05f;
        if (angel > 360.0f)
        {
            angel = 0.0f;
        }
        if (isHeroRoad)
        {
            if (heroRoadAwardContent != null && heroRoadSet)
            {
                heroRoadAwardContent.heroRoadAnimation();
            }
            return;
        }
        if (isTower)
        {
            if (towerAwardContent != null && towerSet)
            {
                towerAwardContent.heroRoadAnimation();
                return;
            }
        }
        User user = UserManager.Instance.self;

        if (setp == nextSetp)
        {
            return;
        }
        //评级
        if (setp == 0)
        {
            ratingContent.SetActive(true);
            ratingLevel.gameObject.SetActive(true);
            TweenScale ts = TweenScale.Begin(ratingLevel.gameObject, 0.2f, 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();
                }, 0.1f));
            }, true);
        }
        //user
        else if (setp == 1)
        {
            userContent.SetActive(true);
            TweenPosition tp = TweenPosition.Begin(userContent, 0.15f, userContent.transform.localPosition);
            tp.from = new Vector3(-500, userContent.transform.localPosition.y, 0);
            EventDelegate.Add(tp.onFinished, () =>
            {
                expbar.gameObject.SetActive(true);
                expbar.updateValue(UserManager.Instance.self.getLevelExp(), UserManager.Instance.self.getLevelAllExp());
                expbarLabel.text = UserManager.Instance.self.getLevelExp() + "/" + UserManager.Instance.self.getLevelAllExp();
                NextSetp();
//				if (expGap > 0) {
//					expbarCtrl.gameObject.SetActive (true);
//					if (aw != null && aw.playerLevelUpInfo != null) {
//						expbarCtrl.init (aw.playerLevelUpInfo);
//						expbarCtrl.setLevelUpCallBack ((nowLevel) => {
//							userLevel.text = "Lv" + nowLevel;
//						});
//					} else {
//						expbarCtrl.updateValue (user.getLevelExp (),user.getLevelAllExp ());
//					}
//					StartCoroutine (Utils.DelayRun (() =>
//					{
//						NextSetp ();
//					}, 0.1f));
//				} else {
//					NextSetp ();
//				}
            }, true);
        }
        //generalAwardContent
        else if (setp == 2)
        {
            generalAwardContent.SetActive(true);
            TweenPosition tp = TweenPosition.Begin(generalAwardContent, 0.15f, generalAwardContent.transform.localPosition);
            tp.from = new Vector3(-500, generalAwardContent.transform.localPosition.y, 0);
            EventDelegate.Add(tp.onFinished, () => {
                bool isShowEffect = false;
                //计算经验
                int num = expGap;
                if (num > 0)
                {
                    TweenLabelNumber tln = TweenLabelNumber.Begin(expValue.gameObject, 0.15f, num);
                    EventDelegate.Add(tln.onFinished, () => {
                        GameObject obj              = Create3Dobj("Effect/Other/Flash").obj;
                        obj.transform.parent        = expContent.transform;
                        obj.transform.localScale    = Vector3.one;
                        obj.transform.localPosition = new Vector3(0, 0, -600);
                        isShowEffect = true;
                    }, true);
                }
                //计算金币
                int gap = moneyGap;
                if (gap > 0)
                {
                    TweenLabelNumber tln = TweenLabelNumber.Begin(moneyValue.gameObject, 0.15f, gap);
                    EventDelegate.Add(tln.onFinished, () => {
                        GameObject obj              = Create3Dobj("Effect/Other/Flash").obj;
                        obj.transform.parent        = moneyContent.transform;
                        obj.transform.localScale    = Vector3.one;
                        obj.transform.localPosition = new Vector3(0, 0, -600);
                        isShowEffect = true;
                    }, true);
                }
                //计算星屑
                int star = starGap;
                if (star > 0)
                {
                    TweenLabelNumber tln = TweenLabelNumber.Begin(starValue.gameObject, 0.15f, star);
                    EventDelegate.Add(tln.onFinished, () => {
                        GameObject obj              = Create3Dobj("Effect/Other/Flash").obj;
                        obj.transform.parent        = starContent.transform;
                        obj.transform.localScale    = Vector3.one;
                        obj.transform.localPosition = new Vector3(0, 0, -600);
                        isShowEffect = true;
                    }, true);
                }
                if (isShowEffect)
                {
                    StartCoroutine(Utils.DelayRun(() => {
                        NextSetp();
                    }, 0.15f));
                }
                else
                {
                    NextSetp();
                }
            }, true);
        }
        //allItems
        else if (setp == 3)
        {
            if (AwardItems == null || AwardItems.Count == 0)
            {
                NextSetp();
            }
            else
            {
                if (AwardItems.Count > 4)
                {
                    awardArrow.SetActive(true);
                }
                AwardContent.SetActive(true);
                TweenPosition tp = TweenPosition.Begin(AwardContent, 0.15f, AwardContent.transform.localPosition);
                tp.from = new Vector3(0, -500, 0);
                EventDelegate.Add(tp.onFinished, () => {
                    float time = GoodsInAnimation(AwardItems);
                    StartCoroutine(Utils.DelayRun(() => {
                        NextSetp();
                    }, time));
                }, true);
            }
        }
        else if (setp == 4)
        {
            if (BoxAwardItems == null || BoxAwardItems.Count == 0)
            {
                NextSetp();
            }
            else
            {
                if (BoxAwardItems.Count > 4)
                {
                    boxAwardArrow.SetActive(true);
                }
                BoxAwardContent.SetActive(true);
                TweenPosition tp = TweenPosition.Begin(BoxAwardContent, 0.15f, BoxAwardContent.transform.localPosition);
                tp.from = new Vector3(0, -500, 0);
                EventDelegate.Add(tp.onFinished, () =>
                {
                    float time = GoodsInAnimation(BoxAwardItems);
                    StartCoroutine(Utils.DelayRun(() =>
                    {
                        NextSetp();
                    }, time));
                }, true);
            }
        }
        else if (setp == 5)
        {
//			btnClose.SetActive (true);
//			if (MissionManager.instance.tmpStorageVersion != StorageManagerment.Instance.tmpStorageVersion) {
//				MessageWindow.ShowAlert (LanguageConfigManager.Instance.getLanguage("s0122"));
//			}
            if (GuideManager.Instance.isOverStep(GuideGlobal.NEWOVERSID))
            {
                MaskWindow.LockUI();
                getLevelUpAward();
            }
            else
            {
                MaskWindow.UnlockUI();
            }
            NextSetp();
//			UiManager.Instance.openDialogWindow<LevelupRewardWindow> ((win) => {
//				win.init (null);
//			});
            //MaskWindow.UnlockUI ();
        }
        else if (setp == 6)
        {
            btnClose.SetActive(true);
            /**分享功能**/
            if (StringKit.toInt(MissionInfoManager.Instance.getMission().getOther() [0]) == 1)
            {
                shareButton.SetActive(true);
                btnClose.transform.localPosition = new Vector3(120.0f, -394.5f, 0);
            }
            MaskWindow.UnlockUI();
        }
        setp++;
    }
Ejemplo n.º 12
0
    /// <summary>
    /// 拾取星魂成功回调
    /// </summary>
    /// <param name="exchangeExp">拾取后自动兑换的经验</param>
    /// <param name="exchangeStarSouls">被兑换的星魂列表</param>
    /// <param name="popStorageStarSouls">自动放入星魂仓库的星魂列表</param>
    private void doChangeExpFinshedCall(int exchangeExp, StarSoul[] exchangeStarSouls, StarSoul[] popStorageStarSouls)
    {
        Transform trans = awardContent.transform;
        StarSoul  starSoul;
        Transform childTransform;

        if (exchangeExp > 0)
        {
            totalIncExchangeExp += exchangeExp;
            incItem.gameObject.SetActive(true);
            incItem.transform.localPosition = starSoulExp.transform.localPosition + new Vector3(starSoulExp.width + 10f, 0f, 0f);
            TweenLabelNumber tln = TweenLabelNumber.Begin(incStarSoulExp.gameObject, 0.5f, totalIncExchangeExp);
            EventDelegate.Add(tln.onFinished, () => {
                totalIncExchangeExp = 0;
            }, true);
        }
        if (exchangeStarSouls != null || popStorageStarSouls != null)
        {
            StopAllCoroutines();
            if (exchangeStarSouls != null)
            {
                GameObject[] nodeObjs = new GameObject[exchangeStarSouls.Length];
                for (int i = 0; i < exchangeStarSouls.Length; i++)
                {
                    starSoul = exchangeStarSouls[i];
                    if (starSoul == null)
                    {
                        continue;
                    }
                    childTransform = trans.FindChild(starSoul.uid);
                    if (childTransform != null)
                    {
                        nodeObjs[i] = childTransform.gameObject;
                    }
                }
                StartCoroutine(playPopStoreEffect(nodeObjs, starSoulExp.gameObject, () => {
                    UpdateUI();
                    MaskWindow.UnlockUI();
                }));
            }
            if (popStorageStarSouls != null)
            {
                GameObject[] nodeObjs = new GameObject[popStorageStarSouls.Length];
                for (int i = 0; i < popStorageStarSouls.Length; i++)
                {
                    starSoul = popStorageStarSouls[i];
                    if (starSoul == null)
                    {
                        continue;
                    }
                    childTransform = trans.FindChild(starSoul.uid);
                    if (childTransform != null)
                    {
                        nodeObjs[i] = childTransform.gameObject;
                    }
                }
                StartCoroutine(playPopStoreEffect(nodeObjs, effectFocusLightPoint, () => {
                    UpdateUI();
                    MaskWindow.UnlockUI();
                }));
            }
        }
        else
        {
            UpdateUI();
            MaskWindow.UnlockUI();
        }
    }
Ejemplo n.º 13
0
    public void heroRoadAnimation()
    {
        if (setp == nextSetp)
        {
            return;
        }
        if (setp == 0)
        {
            roadRoles.gameObject.SetActive(true);
            TweenScale ts = TweenScale.Begin(roadRoles.gameObject, 0.15f, Vector3.one);
            ts.method = UITweener.Method.EaseIn;
            ts.from   = new Vector3(5, 5, 1);
            EventDelegate.Add(ts.onFinished, () =>
            {
                iTween.ShakePosition(roadRoles.gameObject, iTween.Hash("amount", new Vector3(0.03f, 0.03f, 0.03f), "time", 0.4f));
                iTween.ShakePosition(roadRoles.gameObject, iTween.Hash("amount", new Vector3(0.01f, 0.01f, 0.01f), "time", 0.4f));
                StartCoroutine(Utils.DelayRun(() =>
                {
                    roadRoleQuality.gameObject.SetActive(true);
                    NextSetp();
                }, 0.2f));
            }, true);
        }
        else if (setp == 1)
        {
            chapterLabel.gameObject.SetActive(true);
            TweenScale ts = TweenScale.Begin(chapterLabel.gameObject, 0.15f, chapterLabel.transform.localScale);
            ts.from = Vector3.zero;
            EventDelegate.Add(ts.onFinished, () =>
            {
                StartCoroutine(Utils.DelayRun(() =>
                {
                    pass.gameObject.SetActive(true);
                    TweenScale ts3 = TweenScale.Begin(pass.gameObject, 0.15f, Vector3.one);
                    ts3.method     = UITweener.Method.EaseIn;
                    ts3.from       = new Vector3(5, 5, 1);
                    EventDelegate.Add(ts3.onFinished, () =>
                    {
                        iTween.ShakePosition(pass.gameObject, iTween.Hash("amount", new Vector3(0.03f, 0.03f, 0.03f), "time", 0.4f));
                        iTween.ShakePosition(pass.gameObject, iTween.Hash("amount", new Vector3(0.01f, 0.01f, 0.01f), "time", 0.4f));
                        StartCoroutine(Utils.DelayRun(() =>
                        {
                            NextSetp();
                        }, 0.1f));
                    }, true);
                }, 0.2f));
            }, true);
        }
        //honor
        else if (setp == 2)
        {
            General.SetActive(true);
            roadHonor.SetActive(true);
            roadHonor.transform.localPosition = new Vector3(0, -162, 0);
            TweenPosition tp = TweenPosition.Begin(roadHonor, 0.15f, roadHonor.transform.localPosition);
            tp.from = new Vector3(500, roadHonor.transform.localPosition.y, 0);
            int gap = honorGap;
            EventDelegate.Add(tp.onFinished, () =>
            {
                if (gap > 0)
                {
                    honorValueLabel.gameObject.SetActive(true);
                    TweenLabelNumber tln = TweenLabelNumber.Begin(honorValue.gameObject, 0.15f, gap);
                    EventDelegate.Add(tln.onFinished, () =>
                    {
                        GameObject obj              = MonoBase.Create3Dobj("Effect/Other/Flash").obj;
                        obj.transform.parent        = roadHonor.transform;
                        obj.transform.localScale    = Vector3.one;
                        obj.transform.localPosition = new Vector3(0, 0, -600);
                        StartCoroutine(Utils.DelayRun(() =>
                        {
                            NextSetp();
                        }, 0.15f));
                    }, true);
                }
                else
                {
                    NextSetp();
                }
            }, true);
        }
        //rush
        else if (setp == 3)
        {
            roadRush.SetActive(true);
            roadRush.transform.localPosition = new Vector3(0, -246, 0);
            TweenPosition tp = TweenPosition.Begin(roadRush, 0.15f, roadRush.transform.localPosition);
            tp.from = new Vector3(500, roadRush.transform.localPosition.y, 0);
            EventDelegate.Add(tp.onFinished, () =>
            {
                int num = rmbGap;
                if (num > 0)
                {
                    rushValueLabel.gameObject.SetActive(true);
                    TweenLabelNumber tln = TweenLabelNumber.Begin(rushMoneyValue.gameObject, 0.15f, num);
                    EventDelegate.Add(tln.onFinished, () =>
                    {
                        GameObject obj              = MonoBase.Create3Dobj("Effect/Other/Flash").obj;
                        obj.transform.parent        = roadRush.transform;
                        obj.transform.localScale    = Vector3.one;
                        obj.transform.localPosition = new Vector3(0, 0, -600);
                        StartCoroutine(Utils.DelayRun(() =>
                        {
                            NextSetp();
                        }, 0.1f));
                    }, true);
                }
                else
                {
                    NextSetp();
                }
            }, true);
        }
        else if (setp == 4)
        {
//			int count = HeroRoadManagerment.Instance.currentHeroRoad.conquestCount;
//			if (isShowRoadAwake()) {
//				General.SetActive(false);
//				Awake.SetActive (true);
//				awakeStr.text = HeroRoadManagerment.Instance.currentHeroRoad.getAwakeString (count - 1);
//				showHeroRoadAwake ();
//				closeButton.gameObject.SetActive (true);
//			} else {
//				Awake.SetActive(false);
//				closeButton.gameObject.SetActive (true);
//			}
            closeButton.gameObject.SetActive(true);
            MaskWindow.UnlockUI();
        }
        setp++;
    }