Example #1
0
    void Update()
    {
        if (WeekCardInfo.Instance.loginTime == 0)
        {
            WeekCardInfo.Instance.loginTime = ServerTimeKit.getLoginTime();
        }
        if (ServerTimeKit.getMillisTime() >= BackPrizeLoginInfo.Instance.getSecondDayTime(WeekCardInfo.Instance.loginTime))       // 跨天//
        {
            WeekCardInfo.Instance.loginTime = ServerTimeKit.getMillisTime();

            WeekCardInfoFPort fPort = FPortManager.Instance.getFPort("WeekCardInfoFPort") as WeekCardInfoFPort;
            fPort.WeekCardInfoAccess(updateWeekCardInfo);
        }
        if (isOnPressing)
        {
            mTime += 0.1f;
            if (mTime >= 3)
            {
                mTime        = 0;
                isOnPressing = false;
                if (pressedPrizeView != null)
                {
                    pressedPrizeView.DefaultClickEvent();
                }
            }
        }
    }