コード例 #1
0
    public void OnClickZoo()
    {
        //判断当前动物栏的等级是否不为0   为0开启新的动物栏
        int litteZooLevel = GlobalDataManager.GetInstance().playerData.GetLittleZooModuleData(int.Parse(nameID)).littleZooTicketsLevel;

        if (litteZooLevel > 0)
        {
            if (GlobalDataManager.GetInstance().playerData.playerZoo.isGuide == true)
            {
                UIGuidePage uIGuidePage = PageMgr.GetPage <UIGuidePage>();
                if (uIGuidePage == null)
                {
                    string e = string.Format("新手引导界面  PageMgr.allPages里 UIGuidePage   为空");
                    throw new System.Exception(e);
                }
                //LogWarp.LogErrorFormat("测试:  新手引导步骤   动物栏点击   {0}  ", uIGuidePage.procedure);
                if (uIGuidePage.newBieGuild_step != NewBieGuild.Step_20)
                {
                    return;
                }
                else
                {  //取消场景特效  进入场景点击事件
                    uIGuidePage.DestroyEffectChild();
                    uIGuidePage.TAEvent_finish();
                    uIGuidePage.TAEvent_start((int)uIGuidePage.newBieGuild_step + 1);
                    uIGuidePage.TAEvent_process((int)uIGuidePage.newBieGuild_step + 1);
                    uIGuidePage.SetCameraOnClickScene(sceneUIButtonPos);
                    //uIGuidePage.TAEvent_finish(1);
                    //uIGuidePage.TAEvent_start(2);
                }
            }
            //LogWarp.LogErrorFormat("ssssssssssssssss      {0}", nameID);
            //显示UI
            PageMgr.ShowPage <UIZooPage>(nameID);  //动物栏UI交互
            iPage = new UIZooPage();
            UITestToolWindowPage uITestToolWindowPage = PageMgr.GetPage <UITestToolWindowPage>();
            if (uITestToolWindowPage != null)
            {
                uITestToolWindowPage.littleZooID = int.Parse(nameID);
            }
            SetMainPageHidePart(gameObject);
        }
        else
        {
            int idx = Config.buildupConfig.getInstace().getCell(nameID).affirmopen;

            if (GlobalDataManager.GetInstance().playerData.playerZoo.isGuide == true)
            {
                return;
            }
            if (idx == 0)
            {
                PromptText.CreatePromptText("Ui_Text_122");
                return;
            }
            PageMgr.ShowPage <UIBuildOpenPage>(nameID);  //开启新的动物园交互
            iPage = new UIBuildOpenPage();
            SetMainPageHidePart(gameObject);
        }
    }
コード例 #2
0
 void OnRewardADLoadFail(Message msg)
 {
     PageMgr.ClosePage <UIWaitAd>();
     if (requestADButUnload)
     {
         requestADButUnload = false;
         PromptText.CreatePromptText(false, "Load AD Fail");
     }
 }
コード例 #3
0
 public void HideAndShowText()
 {
     this.Hide();
     PromptText.CreatePromptText("AD_Fail");
 }