void Update()
 {
     if (BackPrizeLoginInfo.Instance.loginTime == 0)
     {
         BackPrizeLoginInfo.Instance.loginTime = ServerTimeKit.getLoginTime();
     }
     if (ServerTimeKit.getMillisTime() >= BackPrizeLoginInfo.Instance.getSecondDayTime(BackPrizeLoginInfo.Instance.loginTime))
     {
         BackPrizeLoginInfo.Instance.loginTime = ServerTimeKit.getMillisTime();
         BackPrizeInfoFPort bpif = FPortManager.Instance.getFPort("BackPrizeInfoFPort") as BackPrizeInfoFPort;
         bpif.BackPrizeLoginInfoAccess(updateState);
     }
 }
Beispiel #2
0
    protected override void DoUpdate()
    {
        base.DoUpdate();
        if (Time.frameCount % 50 == 0)
        {
            updateTime();
        }
        if (flag)
        {
            if (topButtons.transform.localPosition.x < -120)
            {
                left.gameObject.SetActive(true);
            }
            else
            {
                left.gameObject.SetActive(false);
            }
            if (topButtons.transform.localPosition.x < -(indexxx - 6) * 110)
            {
                right.gameObject.SetActive(false);
            }
            else
            {
                right.gameObject.SetActive(true);
            }
        }

        if (NoticeManagerment.Instance.loginTime == 0)
        {
            NoticeManagerment.Instance.loginTime = ServerTimeKit.getLoginTime();
        }
        if (ServerTimeKit.getMillisTime() >= BackPrizeLoginInfo.Instance.getSecondDayTime(NoticeManagerment.Instance.loginTime))       // 跨天//
        {
            NoticeManagerment.Instance.loginTime = ServerTimeKit.getMillisTime();
            if (entranceId == NoticeEntranceType.BACK_NOTICE)           // 回归//
            {
                BackPrizeInfoFPort bpif = FPortManager.Instance.getFPort("BackPrizeInfoFPort") as BackPrizeInfoFPort;
                bpif.BackPrizeLoginInfoAccess(updateTime);
            }
            if (entranceId == NoticeEntranceType.ZHOUNIANQING_NOTICE)           // 福袋、周卡//
            {
                // 福袋//
                RebateInfoFPort rif = FPortManager.Instance.getFPort("RebateInfoFPort") as RebateInfoFPort;
                rif.RebateInfoAccess(updateTime);
                // 周卡//
                WeekCardInfoFPort wcif = FPortManager.Instance.getFPort("WeekCardInfoFPort") as WeekCardInfoFPort;
                wcif.WeekCardInfoAccess(updateTime);
            }
        }
    }
Beispiel #3
0
    //回归登录领奖信息 //
    void initBackPrizeInfo()
    {
        BackPrizeInfoFPort bpif = FPortManager.Instance.getFPort("BackPrizeInfoFPort") as BackPrizeInfoFPort;

        bpif.BackPrizeLoginInfoAccess(initBackPrizeRechargeInfo);
    }