Exemplo n.º 1
0
    public override void OnNetResume()
    {
        base.OnNetResume();
        MissionAwardWindow win = UiManager.Instance.getWindow <MissionAwardWindow>();

        if (win != null)
        {
            win.OnNetResume();
            if (win.isOnNet && numAwards > 0)
            {
                awardNumLabel.text = (numAwards - 1).ToString();
                if (numAwards > 0)
                {
                    starNumObj.SetActive(true);
                }
                else
                {
                    starNumObj.SetActive(false);
                }
            }
        }
        ChapterSelectWindow win_1 = UiManager.Instance.getWindow <ChapterSelectWindow>();

        if (win != null)
        {
            win_1.loadDataForOnNet();
        }
    }
Exemplo n.º 2
0
 public void DefaultClickEvent()
 {
     if (equip != null)
     {
         if (starLevelState != null)
         {
             starLevelState.gameObject.SetActive(false);
         }
         MissionAwardWindow window = UiManager.Instance.getWindow <MissionAwardWindow>();
         if (window != null)
         {
             window.destoryWindow();
         }
         UiManager.Instance.openWindow <EquipAttrWindow> (
             (winEquip) => {
             winEquip.Initialize(equip, EquipAttrWindow.OTHER, null);
         });
     }
     else if (starSoul != null)
     {
         UiManager.Instance.openDialogWindow <StarSoulAttrWindow> (
             (win) => {
             win.Initialize(starSoul, StarSoulAttrWindow.AttrWindowType.None);
         });
     }
     else if (prop != null)
     {
         UiManager.Instance.openDialogWindow <PropAttrWindow> (
             (winProp) => {
             winProp.Initialize(prop);
         });
     }
     else if (card != null)
     {
         CardBookWindow.Show(card, CardBookWindow.SHOW, null);
     }
     else if (prize != null)
     {
         clickButton(prize);
     }
     else if (magicWeapon != null)
     {
         UiManager.Instance.openWindow <MagicWeaponStrengWindow>((win) => {
             win.init(magicWeapon, MagicWeaponType.FORM_OTHER);
         });
         if (this.fatherWindow.transform.FindChild("root").gameObject.transform.FindChild("effectPoint") != null)
         {
             this.fatherWindow.transform.FindChild("root").gameObject.transform.FindChild("effectPoint").gameObject.SetActive(false);
         }
     }
     else if (resource_type == PrizeType.PRIZE_RMB)
     {
         prize      = new PrizeSample();
         prize.type = PrizeType.PRIZE_RMB;
         prize.num  = count.ToString();
         UiManager.Instance.openDialogWindow <PropAttrWindow> (
             (winProp) => {
             winProp.Initialize(prize);
         });
     }
     else if (resource_type == PrizeType.PRIZE_MONEY)
     {
         prize      = new PrizeSample();
         prize.type = PrizeType.PRIZE_MONEY;
         prize.num  = count.ToString();
         UiManager.Instance.openDialogWindow <PropAttrWindow> (
             (winProp) => {
             winProp.Initialize(prize);
         });
     }
     else if (resource_type == PrizeType.PRIZE_MERIT)
     {
         prize      = new PrizeSample();
         prize.type = PrizeType.PRIZE_MERIT;
         prize.num  = count.ToString();
         UiManager.Instance.openDialogWindow <PropAttrWindow> (
             (winProp) => {
             winProp.Initialize(prize);
         });
     }
     else
     {
         MaskWindow.UnlockUI();             //如果都不是 则不弹出属性框
     }
 }