Ejemplo n.º 1
0
 protected override void begin()
 {
     base.begin();
     if (!isAwakeformHide)
     {
         if (firstBootIndex > 0)
         {
             initTopButton(true, firstBootIndex, entranceId);
         }
         else
         {
             initTopButton();
         }
     }
     else
     {
         if (lastSelect != null)
         {
             Notice _notice = lastSelect.getNotice();
             int    type    = _notice.getSample().type;
             doSwitchBackGround(type);
             if (lastSelect.getNotice().getSample().type == NoticeType.BACK_RECHARGE)               // 当返回的是回归充值界面//
             {
                 lastSelect.updateTime();
                 showDetail(lastSelect);
             }
         }
     }
     MaskWindow.UnlockUI();
     GuideManager.Instance.guideEvent();
 }
Ejemplo n.º 2
0
    // 领奖成功回调//
    public void receiveCallBack()
    {
        // 飘字//
        showPrize();

        bp.isRecevied = BackPrizeRecevieType.RECEVIED;
        BackPrizeLoginInfo.Instance.prizeList[bp.dayID - 1] = bp;
        BackPrizeLoginInfo.Instance.receivedDays.Add(bp.dayID);
        updateItem(bp, fatherWin, null);
        if (button != null)
        {
            button.updateTime();
        }

        // 英雄之章//
        for (int i = 0; i < bp.prizes.Length; i++)
        {
            if (bp.prizes[i].type == PrizeType.PRIZE_CARD)
            {
                Card card = CardManagerment.Instance.createCard(bp.prizes[i].pSid);
                if (card != null)
                {
                    if (HeroRoadManagerment.Instance.activeHeroRoadIfNeed(card))
                    {
                        StartCoroutine(Utils.DelayRun(() => {
                            UiManager.Instance.openDialogWindow <TextTipWindow>((win) => {
                                win.init(LanguageConfigManager.Instance.getLanguage("s0418"), 0.8f);
                            });
                        }, 0.7f));
                    }
                }
            }
        }
    }