Пример #1
0
    /** 初始化容器 */
    private IEnumerator initContent(int tapIndex)
    {
        resetContentsActive();
        GameObject content = getContent(tapIndex);

        switch (tapIndex)
        {
        case TAP_EVERYDAY_CONTENT:
            EverydayContent ssh = content.GetComponent <EverydayContent> ();
            ssh.init(this);
            break;

        case TAP_WEEKLY_CONTENT:
            WeeklyAwardContent ec = content.GetComponent <WeeklyAwardContent> ();
            ec.init(this);
            break;

        case TAP_HOLV_CONTENT:
            HolidayContent ssc = content.GetComponent <HolidayContent> ();
            ssc.init(this);
            break;
        }
//		GuideManager.Instance.guideEvent();
//		MaskWindow.UnlockUI ();
        yield break;
    }
Пример #2
0
    /** 更新节点容器 */
    public void UpdateContent()
    {
        GameObject content = getContent(currentTapIndex);

        if (currentTapIndex == TAP_EVERYDAY_CONTENT)
        {
            EverydayContent sshc = content.GetComponent <EverydayContent> ();
            sshc.UpdateUI();
        }
        else if (currentTapIndex == TAP_WEEKLY_CONTENT)
        {
            WeeklyAwardContent ssec = content.GetComponent <WeeklyAwardContent> ();
            ssec.UpdateUI();
        }
        else if (currentTapIndex == TAP_HOLV_CONTENT)
        {
            HolidayContent sssc = content.GetComponent <HolidayContent> ();
            sssc.UpdateUI();
        }
    }
Пример #3
0
    public override void buttonEventBase(GameObject gameObj)
    {
        base.buttonEventBase(gameObj);
        if (gameObj.name == "close")
        {
            if (isFirstBoot)
            {
                UiManager.Instance.openWindow <MainWindow>();
                //2014.8.21 杨大侠说不弹出活动了,太烦
//				if(!UserManager.Instance.openNoticeWindow()){
//					finishWindow();
//					UiManager.Instance.openWindow<MainWindow>();
//				}
            }
            else
            {
                finishWindow();
            }
        }
        else
        {
            GameObject content = getContent(currentTapIndex);
            if (currentTapIndex == TAP_EVERYDAY_CONTENT)
            {
                EverydayContent sshc = content.GetComponent <EverydayContent> ();
                sshc.buttonEventBase(gameObj);
            }
            else if (currentTapIndex == TAP_WEEKLY_CONTENT)
            {
                WeeklyAwardContent ssec = content.GetComponent <WeeklyAwardContent> ();
                ssec.buttonEventBase(gameObj);
            }
            else if (currentTapIndex == TAP_HOLV_CONTENT)
            {
                HolidayContent sssc = content.GetComponent <HolidayContent> ();
                sssc.buttonEventBase(gameObj);
            }
        }
    }