Beispiel #1
0
    /// <summary>
    /// 更新天梯对手刷新倒计时
    /// </summary>
    private void M_updateRefreshCutdown()
    {
        int time = LaddersManagement.Instance.M_getRefreshCutdown();

        needUpdate             = time > 0;
        label_refreshTime.text = TimeKit.timeTransform(time * 1000);
    }
 void Update()
 {
     if (setp == nextSetp)
     {
         return;
     }
     if (setp == 0)
     {
         effectPoint.SetActive(true);
         StartCoroutine(Utils.DelayRun(() =>
         {
             NextSetp();
         }, 3.5f));
     }
     else if (setp == 1)
     {
         if (!isActiveHeroRoad)
         {
             currentActivePane.transform.localPosition = new Vector3(currentActivePane.transform.localScale.x, currentActivePane.transform.localScale.y - 50, 1);
         }
         currentActivePane.SetActive(true);
         TweenScale ts = TweenScale.Begin(currentActivePane, 0.2f, new Vector3(currentActivePane.transform.localScale.x, currentActivePane.transform.localScale.y, 1));
         ts.method = UITweener.Method.EaseIn;
         ts.from   = new Vector3(0, 0, 1);
         EventDelegate.Add(ts.onFinished, () =>
         {
             StartCoroutine(Utils.DelayRun(() => {
                 NextSetp();
             }, 0.1f));
         }, true);
     }
     else if (setp == 2)
     {
         if (isActiveHeroRoad)
         {
             heroRoadEffectPoint.SetActive(true);
             StartCoroutine(Utils.DelayRun(() => {
                 NextSetp();
             }, 0.5f));
         }
         else
         {
             NextSetp();
         }
     }
     else if (setp == 3)
     {
         if (lucky != null && lucky.freeTimeChange)
         {
             lucky.freeTimeChange = false;
             freeTimeLabel.text   = Language("s0585") + TimeKit.timeTransform((lucky.getNextFreeTime() - ServerTimeKit.getSecondTime()) * 1000);
         }
         closeButton.SetActive(true);
         shareButton.SetActive(true);
         GuideManager.Instance.guideEvent();
         MaskWindow.UnlockUI();
     }
     setp++;
 }
Beispiel #3
0
    /// <summary>
    /// 获得坐骑行动力倒计时
    /// </summary>
    public string getNextMountsPveTime()
    {
        long time = self.updateStorePve();

        if (time > 0)
        {
            return(TimeKit.timeTransform(time));
        }
        return("");
    }
Beispiel #4
0
    //得到英雄之章挑战次数恢复速度
    public string getNextChvTime()
    {
        long time = self.updateChv();

        if (time > 0)
        {
            return(TimeKit.timeTransform(time));
        }
        return("");
    }
Beispiel #5
0
 protected override void begin()
 {
     base.begin();
     nowTime.text = TimeKit.timeTransform(ServerTimeKit.getCurrentSecond() * 1000);
     content.reLoad(MysticalShopConfigManager.Instance.updateData);
     timer = TimerManager.Instance.getTimer(UserManager.TIMER_DELAY);
     timer.addOnTimer(refreshData);
     timer.start();
     MaskWindow.UnlockUI();
 }
Beispiel #6
0
 void Update()
 {
     if ((endTimes - ServerTimeKit.getSecondTime()) <= 0)       // 双倍经验时间已结束//
     {
         timeValue.text = LanguageConfigManager.Instance.getLanguage("Arena73");
     }
     else
     {
         timeValue.text = TimeKit.timeTransform((endTimes - ServerTimeKit.getSecondTime()) * 1000.0d);
     }
 }
Beispiel #7
0
 /// <summary>
 /// 更新CD倒计时
 /// </summary>
 void updateTime()
 {
     if (cdEndTime > ServerTimeKit.getSecondTime())
     {
         timeLabel.gameObject.SetActive(true);
         if (!closePoint.activeSelf)
         {
             closePoint.SetActive(true);
         }
         if (addFlag.activeInHierarchy)
         {
             addFlag.SetActive(false);
         }
         if (donLabel.gameObject.activeSelf)
         {
             donLabel.gameObject.SetActive(false);
         }
         if (!goddessSelectButton.isDisable())
         {
             goddessSelectButton.disableButton(true);
         }
         timeLabel.text = LanguageConfigManager.Instance.getLanguage("s0376l13", TimeKit.timeTransform(cdEndTime * 1000 - ServerTimeKit.getSecondTime() * 1000));
     }
     else
     {
         if (closePoint.activeSelf)
         {
             closePoint.SetActive(false);
         }
         if (be == null)
         {
             if (!addFlag.activeInHierarchy)
             {
                 addFlag.SetActive(true);
             }
         }
         else
         {
             if (addFlag.activeInHierarchy)
             {
                 addFlag.SetActive(false);
             }
         }
         if (!donLabel.gameObject.activeSelf)
         {
             donLabel.gameObject.SetActive(true);
         }
         timeLabel.gameObject.SetActive(false);
         if (goddessSelectButton.isDisable())
         {
             goddessSelectButton.disableButton(false);
         }
     }
 }
 void updateTime()
 {
     if (UserManager.Instance.self.getUserLevel() >= sample.activeLv && sample.timeFlag == 1)
     {
         timeLabel.gameObject.SetActive(true);
         timeLabel.text = LanguageConfigManager.Instance.getLanguage("shop08l", TimeKit.timeTransform(MysticalShopConfigManager.Instance.getNextFlushTime()));
     }
     else
     {
         timeLabel.gameObject.SetActive(false);
     }
 }
Beispiel #9
0
 void Update()
 {
     if (needUpdate && Time.frameCount % 20 == 0)
     {
         int time = FuBenManagerment.Instance.practiceDueTime - ServerTimeKit.getSecondTime();
         if (time > 0)
         {
             label_dueTime.text = TimeKit.timeTransform(time * 1000);
         }
         else
         {
             updateTimes();
             label_dueTime.text = "";
         }
     }
 }
    void UpdateCD()
    {
        string str = TimeKit.timeTransform(am.finalCD * 1000);

        lblNextCD.text = LanguageConfigManager.Instance.getLanguage("Arena17", str);
        if (am.finalCD > 0)
        {
            am.finalCD--;
        }
        else
        {
            if (cdTimer != null)
            {
                cdTimer.stop();
                cdTimer = null;
                FPortManager.Instance.getFPort <ArenaFinalFPort> ().access(OnDataLoad);
            }
        }
    }
Beispiel #11
0
    /// <summary>
    /// 返回时间倒计时信息
    /// </summary>
    /// <returns>The time info.</returns>
    /// <param name="_type">_type.</param>
    public string M_getTimeInfo(EnumSweep _type)
    {
        int currentTime = ServerTimeKit.getSecondTime();
        int leftTime    = 0;

        switch (_type)
        {
        case EnumSweep.fuben:
        {
            if (currentTime < sweepFuben_endTime)
            {
                leftTime = sweepFuben_endTime - currentTime;
                int newTimes = sweepFuben_totalTimes - UnityEngine.Mathf.CeilToInt((float)leftTime / SweepCostTime);
                sweepFuben_currentTimes = newTimes > 0 ? newTimes : 0;
            }
            else
            {
                leftTime = 0;
                sweepFuben_currentTimes = sweepFuben_totalTimes;
            }
        }
        break;

        case EnumSweep.boss:
        {
            if (currentTime < sweepBoss_endTime)
            {
                leftTime = sweepBoss_endTime - currentTime;
                sweepBoss_currentTimes = sweepBoss_totalTimes - UnityEngine.Mathf.CeilToInt((float)leftTime / SweepCostTime);
            }
            else
            {
                leftTime = 0;
                sweepBoss_currentTimes = sweepBoss_totalTimes;
            }
        }
        break;
        }
        return(TimeKit.timeTransform(leftTime * 1000));
    }
Beispiel #12
0
 void FixedUpdate()
 {
     if (luckyDraw.getTimeInfo() != "")
     {
         timeLabel.text = luckyDraw.getTimeInfo();
     }
     else if (luckyDraw.getNextFreeTime() != -1)
     {
         if (luckyDraw.canFreeCD())
         {
             showFreeBg();
         }
         else
         {
             timeLabel.text = Language("s0585") + TimeKit.timeTransform((luckyDraw.getNextFreeTime() - ServerTimeKit.getSecondTime()) * 1000);
         }
     }
     else
     {
         timeLabel.text = "";
     }
 }
Beispiel #13
0
    void Update()
    {
        if ((endTime - ServerTimeKit.getSecondTime()) <= 0)       // 活动已结束已结束//
        {
            timeLabel.text = LanguageConfigManager.Instance.getLanguage("godsWar_141555");
        }
        else
        {
            timeLabel.text = TimeKit.timeTransform((endTime - ServerTimeKit.getSecondTime()) * 1000.0d);
        }

        if (RebateInfoManagement.Instance.loginTime == 0)
        {
            RebateInfoManagement.Instance.loginTime = ServerTimeKit.getLoginTime();
        }
        if (ServerTimeKit.getMillisTime() >= BackPrizeLoginInfo.Instance.getSecondDayTime(RebateInfoManagement.Instance.loginTime))       // 跨天//
        {
            RebateInfoManagement.Instance.loginTime = ServerTimeKit.getMillisTime();

            RebateInfoFPort rif = FPortManager.Instance.getFPort("RebateInfoFPort") as RebateInfoFPort;
            rif.RebateInfoAccess(getRebateInfoCallBack);
        }
    }
Beispiel #14
0
    /**刷新时间*/
    private void refreshAwardTime()
    {
        long remainCloseTime = cdTime - ServerTimeKit.getSecondTime();

        if (remainCloseTime >= 0)
        {
            countdownTimeLabel.gameObject.SetActive(true);
            countdownTimeLabel.text = TimeKit.timeTransform(remainCloseTime * 1000);
            rightButton.disableButton(false);
            if (doneLabel.gameObject.activeSelf)
            {
                doneLabel.gameObject.SetActive(false);
            }
        }
        else
        {
            GoddessTrainingSample sample = GoddessTrainingSampleManager.Instance.getDataBySid(22);
            if (UserManager.Instance.self.getUserLevel() >= sample.lvCondition)
            {
                rightButton.disableButton(false);
                if (!doneLabel.gameObject.activeSelf)
                {
                    doneLabel.gameObject.SetActive(true);
                }
                doneLabel.text = LanguageConfigManager.Instance.getLanguage("s0043l1");
            }
            else
            {
                rightButton.disableButton(true);
                doneLabel.gameObject.SetActive(false);
//				doneLabel.text=LanguageConfigManager.Instance.getLanguage("s0043l0",sample.lvCondition.ToString());
            }
            countdownTimeLabel.gameObject.SetActive(false);
        }
        checkLevelCondition();
        checkShenGeLevelCondition();
    }
Beispiel #15
0
 void Update()
 {
     if ((endTimes - ServerTimeKit.getSecondTime()) <= 0)       // 双倍经验时间已结束//
     {
         timeLabel.text = LanguageConfigManager.Instance.getLanguage("notice_dailyRebate_06");
     }
     else
     {
         timeLabel.text = LanguageConfigManager.Instance.getLanguage("goddnessShake01") + TimeKit.timeTransform((endTimes - ServerTimeKit.getSecondTime()) * 1000.0d);
     }
 }
Beispiel #16
0
    /// <summary>
    ///
    /// </summary>
    public override void DoUpdate()
    {
        base.DoUpdate();
        int remainingTime = CardTrainingManagerment.Instance.GetRemainingTime(mLocationIndex);

        if (remainingTime <= 0 && !mIsTimeOver)
        {
            mIsTimeOver = true;
            timeOver();
        }
        if (remainingTime > 0)
        {
            UI_Time.text = Colors.RED + LanguageConfigManager.Instance.getLanguage("s0473") + TimeKit.timeTransform(remainingTime * 1000) + "[-]";
        }
    }
Beispiel #17
0
 private void refreshData()
 {
     nowTime.text = TimeKit.timeTransform(ServerTimeKit.getCurrentSecond() * 1000);
 }