Exemplo n.º 1
0
    /// <summary>
    /// 设置增益buff的倒计时功能
    /// </summary>
    protected void SetCountDownShow_Double(int deltaTimeMS)
    {
        var    buffList = GlobalDataManager.GetInstance().playerData.playerZoo.buffList;
        string time_str = "00:00:00";

        for (int i = 0; i < buffList.Count; i++)
        {
            if (buffList[i].buffID == 14)
            {
                double time = buffList[i].CD.cd;
                advertButton_Time.text = Math_F.OnDounbleToFormatTime_Anhour((int)time);;
                return;
            }
            else
            {
                if (i == buffList.Count - 1)
                {
                    advertButton_Time.text = time_str;
                }
            }
        }
        if (buffList.Count == 0)
        {
            advertButton_Time.text = time_str;
        }
    }
Exemplo n.º 2
0
    private void SetCountDownShow_CrossRoad(int deltaTimeMS)
    {
        var countDownTicks = playerData.playerLittleGame.intCD;

        //LogWarp.LogErrorFormat("小游戏倒计时    {0}     ", (int)(countDownTicks.cd / 1000));
        if (countDownTicks != null)
        {
            strength_Time.text = Math_F.OnDounbleToFormatTime_Anhour((int)(countDownTicks.cd / 1000));
        }
    }