Example #1
0
    /// <summary>
    /// 设置生日任务活动倒计时
    /// </summary>
    private void SetActivityTime()
    {
        var openDay    = _missionModel.GetPlayerBirthdayOpenDay();
        var allDay     = _missionModel.GetPlayerBirthdayAllDay();
        var residueDay = allDay - openDay;

        if (residueDay == 0)
        {
            ClientTimer.Instance.AddCountDown("SetPlayerBirthdayCountDown", Int64.MaxValue, 1f, SetPlayerBirthdayCountDown, null);
            SetPlayerBirthdayCountDown(0);
        }
        else
        {
            _activityResidueTime.text = I18NManager.Get("StarActivity_LeftDays", residueDay);            //residueDay+"天后结束";
        }
    }