Ejemplo n.º 1
0
    /// <summary>
    /// 更换banner
    /// </summary>
    public void refreshBanner()
    {
        if (this == null || !gameObject.activeInHierarchy)
        {
            if (timer != null)
            {
                timer.stop();
                timer = null;
            }
            return;
        }
        info.SetActive(true);
        luckyBanner.gameObject.SetActive(false);
        DateTime dt   = TimeKit.getDateTimeMillis(ServerTimeKit.getMillisTime());//获取服务器时间
        string   week = dt.DayOfWeek.ToString();

        if (UserManager.Instance.self.getUserLevel() > LIMITLEVEL)
        {
            if (week == "Friday" || week == "Saturday" || week == "Sunday")
            {
                ResourcesManager.Instance.LoadAssetBundleTexture(ResourcesManager.CHAPTERDESCIMAGEPATH + "20_luckyBanner", luckyBanner);
                luckyBanner.gameObject.SetActive(true);
                info.SetActive(false);
            }
        }
    }
Ejemplo n.º 2
0
    /// <summary>
    /// 打开卡片选择窗口
    /// </summary>
    private void openTeamEditWindow()
    {
        DateTime dt        = TimeKit.getDateTimeMillis(ServerTimeKit.getMillisTime());//获取服务器时间
        int      dayOfWeek = TimeKit.getWeekCHA(dt.DayOfWeek);
        int      nowOfDay  = ServerTimeKit.getCurrentSecond();

        int[] timeInfo = CommandConfigManager.Instance.getOneOnOneBossTimeInfo(); //开放时间
        int[] data     = CommandConfigManager.Instance.getOneOnOneBossData();     //开放日期
        for (int i = 0; i < data.Length; i++)
        {
            if (dayOfWeek == data[i] && nowOfDay > timeInfo[0] && nowOfDay < timeInfo[1])
            {
                if (AttackBossOneOnOneManager.Instance.canChallengeTimes + AttackBossOneOnOneManager.Instance.buyTimes <= 0)  //次数用完
                {
                    UiManager.Instance.openDialogWindow <TextTipWindow>((win) => {
                        win.init(LanguageConfigManager.Instance.getLanguage("OneOnOneBoss_033"), 0.8f);
                    });
                    return;
                }
                UiManager.Instance.openWindow <CardSelectWindow>((win) => {
                    win.Initialize(CardChooseWindow.CHATSHOW);
                });
                return;
            }
        }
        UiManager.Instance.openDialogWindow <TextTipWindow>((win) => {//没开启活动
            win.init(LanguageConfigManager.Instance.getLanguage("OneOnOneBoss_018"), 0.8f);
        });
    }
Ejemplo n.º 3
0
    public void refreshTips()
    {
        if (this == null || !gameObject.activeInHierarchy)
        {
            if (timer != null)
            {
                timer.stop();
                timer = null;
            }
            return;
        }
        //punitiveButton.gameObject.transform.FindChild("Tips").gameObject.SetActive(false);
        //punitiveTips.SetActive(false);
        lastBattleTips.SetActive(false);
        oneOnOneBossTips.SetActive(false);
        DateTime dt = TimeKit.getDateTimeMillis(ServerTimeKit.getMillisTime());//获取服务器时间

        //showPuntiveTips(dt);
        if (UserManager.Instance.self.getUserLevel() >= CommandConfigManager.Instance.lastBattleData.openLevel && TimeKit.getWeekCHA(dt.DayOfWeek) == CommandConfigManager.Instance.lastBattleData.dayOfWeek)
        {
            lastBattleTips.SetActive(true);
        }
        int[] data = CommandConfigManager.Instance.getOneOnOneBossData();
        if (UserManager.Instance.self.getUserLevel() >= CommandConfigManager.Instance.getOneOnOneBossLimitLv())
        {
            for (int i = 0; i < data.Length; i++)
            {
                if (TimeKit.getWeekCHA(dt.DayOfWeek) == data[i])
                {
                    oneOnOneBossTips.SetActive(true);
                }
            }
        }
    }
Ejemplo n.º 4
0
    public int getWeeklyAwardNum()
    {
        int num = 0;

        if (!getHaveWeeklyAwardShow())
        {
            return(0);
        }
        DateTime timen          = TimeKit.getDateTimeMillis(ServerTimeKit.getMillisTime());
        DateTime ServerOpenTime = TimeKit.getDateTimeMin(ServerTimeKit.onlineTime);
        int      today          = (int)timen.DayOfWeek;

        if (today == 0)
        {
            today = 7;
        }
        for (int i = 0; i < arrayWeekly.Length; i++)
        {
            if (arrayWeekly[i].isAward != 1 && arrayWeekly[i].isloginn == 1 && arrayWeekly[i].week <= today)
            {
                num += 1;
            }
        }
        return(num);
    }
Ejemplo n.º 5
0
    private void parseWeekly(string str)
    {
        TotalLogin bb = new TotalLogin();

        String[] strArr = str.Split('|');
        bb.prizeSid   = StringKit.toInt(strArr[0]);
        bb.week       = StringKit.toInt(strArr[3]);
        bb.single     = strArr[4];
        bb.rewardType = StringKit.toInt(strArr[5]);
        DateTime dt = TimeKit.getDateTimeMillis(ServerTimeKit.getMillisTime());
        int      x  = (dt.DayOfYear / 7 + 1) % 2;

        if (x == 0)
        {
            bb.prizes = parsePrizes(strArr[6]);
        }
        else
        {
            bb.prizes = parsePrizes(strArr[7]);
        }
        if (list == null)
        {
            list = new List <TotalLogin> ();
        }
        list.Add(bb);
    }
Ejemplo n.º 6
0
    public long getSecondDayTime(long loginTime)
    {
        DateTime dt_loginTime     = TimeKit.getDateTimeMillis(loginTime);
        DateTime dt_secondDayTime = new DateTime(dt_loginTime.Year, dt_loginTime.Month, dt_loginTime.Day, 23, 59, 59);

        secondDayTime = TimeKit.getTimeMillis(dt_secondDayTime) + 1000;
        DateTime dt = TimeKit.getDateTimeMillis(secondDayTime);

        return(secondDayTime);
    }
Ejemplo n.º 7
0
    // 活动是否开启 //
    bool isActivityOpen()
    {
        int day = TimeKit.getWeekCHA(TimeKit.getDateTimeMillis(ServerTimeKit.getMillisTime()).DayOfWeek);

        for (int i = 0; i < CommandConfigManager.Instance.getLotteryData().openTime.Length; i++)
        {
            if (day == CommandConfigManager.Instance.getLotteryData().openTime[i])
            {
                return(true);
            }
        }
        return(false);
    }
Ejemplo n.º 8
0
    string getNextOpenTimeLabel()
    {
        int currentDay = TimeKit.getWeekCHA(TimeKit.getDateTimeMillis(ServerTimeKit.getMillisTime()).DayOfWeek);

        int[] openTimes = CommandConfigManager.Instance.getLotteryData().openTime;
        for (int i = 0; i < openTimes.Length; i++)
        {
            if (currentDay < openTimes[i])
            {
                return(LanguageConfigManager.Instance.getLanguage("lottery_" + openTimes[i]));
            }
        }

        return(LanguageConfigManager.Instance.getLanguage("lottery_" + openTimes[0]));
    }
Ejemplo n.º 9
0
    /// <summary>
    /// 是否显示周末送,开服5天 GM工具开启
    /// </summary>
    /// <returns><c>true</c>, if have weekly award show was gotten, <c>false</c> otherwise.</returns>
    public bool getHaveWeeklyAwardShow()
    {
        if (!weeklyState)
        {
            return(false);
        }
        DateTime timen          = TimeKit.getDateTimeMillis(ServerTimeKit.getMillisTime());
        DateTime ServerOpenTime = TimeKit.getDateTimeMin(ServerTimeKit.onlineTime);
        TimeSpan ts             = timen.Subtract(ServerOpenTime);

        if (ts.Days >= 5)
        {
            return(true);
        }
        return(false);
    }
Ejemplo n.º 10
0
    //得到周末送的数据
    public TotalLogin[]  getWeeklyAwardData()
    {
        DateTime timen = TimeKit.getDateTimeMillis(ServerTimeKit.getMillisTime());
        int      today = (int)timen.DayOfWeek;

        listt = new List <TotalLogin>();
        //都要显示
        for (int i = 0; i < arrayWeekly.Length; i++)
        {
            if (listt == null)
            {
                listt = new List <TotalLogin>();
            }
            listt.Add(arrayWeekly[i]);
        }
        return(listt.ToArray());
    }
Ejemplo n.º 11
0
    //得到活动开启状态
    public int getHolidayActionsTate()
    {
        DateTime timen = TimeKit.getDateTimeMillis(ServerTimeKit.getMillisTime());
        string   date  = timen.ToShortDateString().ToString();

        string[] atcieTime = WeeklyAwardConfigManager.Instance.getTimee();
        for (int i = 0; i < atcieTime.Length; i++)
        {
            DateTime begin = Convert.ToDateTime(atcieTime[i].Split(',')[2]);
            DateTime end   = Convert.ToDateTime(atcieTime[i].Split(',')[3]);
            if (TimeKit.getTimeMillis(begin) <= TimeKit.getTimeMillis(timen) && TimeKit.getTimeMillis(end) >= TimeKit.getTimeMillis(timen))
            {
                return(StringKit.toInt(atcieTime[i].Split(',')[0]));
            }
        }
        return(0);
    }
Ejemplo n.º 12
0
    public bool bossFightIsOpen()
    {
        DateTime dt        = TimeKit.getDateTimeMillis(ServerTimeKit.getMillisTime());//获取服务器时间
        int      dayOfWeek = TimeKit.getWeekCHA(dt.DayOfWeek);
        int      nowOfDay  = ServerTimeKit.getCurrentSecond();

        int[] timeInfo = CommandConfigManager.Instance.getOneOnOneBossTimeInfo(); //开放时间
        int[] data     = CommandConfigManager.Instance.getOneOnOneBossData();     //开放日期
        for (int i = 0; i < data.Length; i++)
        {
            if (dayOfWeek == data[i] && (nowOfDay >= timeInfo[0] && nowOfDay <= timeInfo[1]))
            {
                return(true);
            }
        }
        return(false);
    }
Ejemplo n.º 13
0
    //讨伐副本信息按钮
    private void showPunitive()
    {
        Chapter chapterWar = FuBenManagerment.Instance.getWarChapter();

        if (chapterWar != null)
        {
//			punitiveText.gameObject.SetActive (true);
//			punitiveText.text = Language ("s0144") + " " + chapterWar.getNum () + "/" + chapterWar.getMaxNum ();
            new_punitiveText.gameObject.SetActive(true);
            new_punitiveText.text = chapterWar.getNum() + "/" + chapterWar.getMaxNum();
            //punitiveButton.gameObject.SetActive (true);
            showPuntiveTips(TimeKit.getDateTimeMillis(ServerTimeKit.getMillisTime()));
        }
        else
        {
            punitiveButton.gameObject.SetActive(false);
        }
    }
Ejemplo n.º 14
0
    //获得绝对时间限制
    public static TimeLimit updateTimeLimit(TimeLimit tls, long[] times)
    {
        long     now = ServerTimeKit.getSecondTime();
        DateTime dt  = TimeKit.getDateTimeMillis(now * 1000);

        tls.today = (int)dt.DayOfWeek == 0 ? 7 : (int)dt.DayOfWeek;
        if (now < times [0])
        {
            tls.type = TimeLimit.FRONT;
            tls.time = times [0] - now;
        }
        else if (now >= times [0] && now <= times [1])
        {
            tls.type = TimeLimit.MIDDLE;
            tls.time = times [1] - now;
        }
        return(tls);
    }
Ejemplo n.º 15
0
 bool compareTime()
 {
     dt       = TimeKit.getDateTimeMillis(ServerTimeKit.getMillisTime());
     yearStr  = dt.Year.ToString();
     monthStr = dt.Month.ToString();
     dayStr   = dt.Day.ToString();
     timeStr  = yearStr + "," + monthStr + "," + dayStr;
     if (PlayerPrefs.HasKey(LastBattleManagement.lastBattleTimeKey + UserManager.Instance.self.uid))
     {
         strArr = PlayerPrefs.GetString(LastBattleManagement.lastBattleTimeKey + UserManager.Instance.self.uid).Split(',');
         if (strArr[0] == yearStr && strArr[1] == monthStr && strArr[2] == dayStr)
         {
             return(true);
         }
     }
     PlayerPrefs.SetString(LastBattleManagement.lastBattleTimeKey + UserManager.Instance.self.uid, timeStr);
     return(false);
 }
Ejemplo n.º 16
0
    //更新页面
    public void UpdateUI()
    {
        (winn as TotalLoginWindow).resetHolidayWeekShow();
        awardContent.cleanAll();
        DateTime timen  = TimeKit.getDateTimeMillis(ServerTimeKit.getMillisTime());
        int      totime = (int)timen.DayOfWeek;

        if (totime == 6 || totime == 0)
        {
            unOpenLabel.gameObject.SetActive(false);
            TotalLogin[] awards = SortLoginAward();
            awardContent.reLoad(awards, TotalLoginManagerment.WEEKLY);
        }
        else
        {
            unOpenLabel.gameObject.SetActive(true);
        }
    }
Ejemplo n.º 17
0
    /// <summary>
    /// 有没有奖励
    /// </summary>
    /// <returns><c>true</c>, if have weekly award was gotten, <c>false</c> otherwise.</returns>
    public bool getHaveWeeklyAward()
    {
        DateTime timen          = TimeKit.getDateTimeMillis(ServerTimeKit.getMillisTime());
        DateTime ServerOpenTime = TimeKit.getDateTimeMin(ServerTimeKit.onlineTime);
        int      today          = (int)timen.DayOfWeek;

        if (today == 0)
        {
            today = 7;
        }
        for (int i = 0; i < arrayWeekly.Length; i++)
        {
            if (arrayWeekly[i].isAward != 1 && arrayWeekly[i].isloginn == 1 && arrayWeekly[i].week <= today)
            {
                return(true);
            }
        }
        return(false);
    }
Ejemplo n.º 18
0
    void Update()
    {
        if (RankManagerment.Instance.updateRankItemTotalDamage)
        {
            RankManagerment.Instance.updateRankItemTotalDamage = false;
            RankManagerment.Instance.loadData(RankManagerment.TYPE_BOSSDAMAGE, updateUI);
        }

        dt        = TimeKit.getDateTimeMillis(ServerTimeKit.getMillisTime()); //获取服务器时间
        dayOfWeek = TimeKit.getWeekCHA(dt.DayOfWeek);
        nowOfDay  = ServerTimeKit.getCurrentSecond();
        // 活动中//
        for (int i = 0; i < data.Length; i++)
        {
            if (dayOfWeek == data[i] && (nowOfDay >= timeInfo[0] && nowOfDay <= timeInfo[1]))
            {
                if (lblMyRank.transform.localPosition != lblMyRankOldPos && buttonHelp.localPosition != buttonHelpOldPos)
                {
                    lalAward.gameObject.SetActive(true);
                    awardIcon.SetActive(true);
                    lblMyRank.transform.localPosition = lblMyRankOldPos;
                    buttonHelp.localPosition          = buttonHelpOldPos;
                }
            }
            // 活动未开//
            else
            {
                if (lblMyRank.transform.localPosition != lblMyRankMidPosObj.localPosition && buttonHelp.localPosition != buttonHelpMidPosObj.localPosition)
                {
                    lalAward.gameObject.SetActive(false);
                    awardIcon.SetActive(false);
                    lblMyRank.transform.localPosition = lblMyRankMidPosObj.localPosition;
                    buttonHelp.localPosition          = buttonHelpMidPosObj.localPosition;
                }
            }
        }
    }
Ejemplo n.º 19
0
    private void updateInfo()
    {
        DateTime dt        = TimeKit.getDateTimeMillis(ServerTimeKit.getMillisTime());//获取服务器时间
        int      dayOfWeek = TimeKit.getWeekCHA(dt.DayOfWeek);
        int      nowOfDay  = ServerTimeKit.getCurrentSecond();

        int[] timeInfo = CommandConfigManager.Instance.getOneOnOneBossTimeInfo(); //开放时间
        int[] data     = CommandConfigManager.Instance.getOneOnOneBossData();     //开放日期
        for (int i = 0; i < data.Length; i++)
        {
//            if (dayOfWeek == data[i] && (nowOfDay == timeInfo[0] || nowOfDay == timeInfo[1])) {
//                GetBossAttackFPort fport = FPortManager.Instance.getFPort("GetBossAttackFPort") as GetBossAttackFPort;
//                fport.access(CommandConfigManager.Instance.getBossFightSid(), updateUI);
//                return;
//            }
            if (dayOfWeek == data[i] && (nowOfDay >= timeInfo[0] && nowOfDay <= timeInfo[1]))
            {
                updateNotOpen = true;
                if (updateOpen)
                {
                    updateOpen = false;
                    GetBossAttackFPort fport = FPortManager.Instance.getFPort("GetBossAttackFPort") as GetBossAttackFPort;
                    fport.access(CommandConfigManager.Instance.getBossFightSid(), updateUI);
                }
                updateTime(timeInfo, nowOfDay);
            }
            else
            {
                updateOpen = true;
                if (updateNotOpen)
                {
                    updateNotOpen = false;
                    updateUIForNotOpen();
                }
            }
        }
    }
Ejemplo n.º 20
0
 public static int getCurrentMonth()
 {
     return(TimeKit.getDateTimeMillis(getMillisTime()).Month);
 }
Ejemplo n.º 21
0
 public static int getYear()
 {
     return(TimeKit.getDateTimeMillis(getMillisTime()).Year);
 }
Ejemplo n.º 22
0
 /**获得当前月分的第几日*/
 public static int getDayOfMonth()
 {
     return(TimeKit.getDateTimeMillis(getMillisTime()).Day);
 }
Ejemplo n.º 23
0
    protected override void begin()
    {
        UiManager.Instance.backGround.switchBackGround("ChouJiang_BeiJing");
        base.begin();
        new_punitiveButton.transform.localPosition     = new Vector3(10000f, 10000f, 0f);
        new_practiceButton.transform.localPosition     = new Vector3(10000f, 10000f, 0f);
        new_activityButton.transform.localPosition     = new Vector3(10000f, 10000f, 0f);
        new_oneOnOneBossButton.transform.localPosition = new Vector3(10000f, 10000f, 0f);
        new_clmbTowerButton.transform.localPosition    = new Vector3(10000f, 10000f, 0f);
        new_lastBattleButton.transform.localPosition   = new Vector3(10000f, 10000f, 0f);
        if (!GameManager.Instance.skipGuide)
        {
            updateButtonPostion();
        }
        else
        {
            updateButtonNoGuide();
        }

        if (GuideManager.Instance.getOnTypp() == 41 && GuideManager.Instance.isMoriJuezhan)
        {
            updateFirendButton();
        }
        else
        {
            DateTime dt   = TimeKit.getDateTimeMillis(ServerTimeKit.getMillisTime());
            int[]    data = CommandConfigManager.Instance.getOneOnOneBossData();
            // 末日决战选项置顶//
            if (UserManager.Instance.self.getUserLevel() >= CommandConfigManager.Instance.lastBattleData.openLevel && TimeKit.getWeekCHA(dt.DayOfWeek) == CommandConfigManager.Instance.lastBattleData.dayOfWeek)
            {
                new_lastBattleButton.transform.parent        = huoDongContent.transform;
                new_lastBattleButton.transform.localPosition = new Vector3(0f, -0f, 0f);
                new_punitiveButton.transform.parent          = huoDongContent.transform;
                new_punitiveButton.transform.localPosition   = new Vector3(0f, -900f, 0f);
            }
            // 单挑boss置顶//
            else if (UserManager.Instance.self.getUserLevel() >= CommandConfigManager.Instance.getOneOnOneBossLimitLv())
            {
                for (int i = 0; i < data.Length; i++)
                {
                    if (TimeKit.getWeekCHA(dt.DayOfWeek) == data[i])
                    {
                        new_punitiveButton.transform.parent            = huoDongContent.transform;
                        new_punitiveButton.transform.localPosition     = new Vector3(0f, -540f, 0f);
                        new_oneOnOneBossButton.transform.parent        = huoDongContent.transform;
                        new_oneOnOneBossButton.transform.localPosition = new Vector3(0f, 0f, 0f);
                    }
                }
            }
        }
        timer = TimerManager.Instance.getTimer(UserManager.TIMER_DELAY);
        timer.addOnTimer(refreshTips);
        timer.start();
        initFubenData();
        if (GuideManager.Instance.isEqualStep(123001000) || GuideManager.Instance.isEqualStep(140003000) ||
            GuideManager.Instance.isEqualStep(126003000) || GuideManager.Instance.isEqualStep(103003000) ||
            GuideManager.Instance.isEqualStep(120003000))
        {
            GuideManager.Instance.guideEvent();
        }
        GuideManager.Instance.doFriendlyGuideEvent();
    }
Ejemplo n.º 24
0
    public void updateAwardItem(TotalLogin loginAward, WindowBase fatherWindow, int type)
    {
        ButtonTotalLoginAward button;

        for (int i = 0; i < awardButtons.Length; i++)
        {
            button = awardButtons[i];
            button.gameObject.SetActive(false);
        }
        int count = loginAward.prizes.Length;

        if (count > awardButtons.Length)
        {
            count = awardButtons.Length;
        }
        for (int i = 0; i < count; i++)
        {
            button = awardButtons[i];
            button.gameObject.SetActive(true);
            button.cleanData();
            button.updateButton(loginAward.prizes [i]);
            button.setFatherWindow(fatherWindow);
        }
        awardButton.textLabel.text = (LanguageConfigManager.Instance.getLanguage("s0309"));
        //天天送
        if (type == TotalLoginManagerment.EVERYDAY)
        {
            if (TotalLoginManagerment.Instance.getTotalDay() < loginAward.totalDays)
            {
                awardButton.gameObject.SetActive(false);
                /**分享功能**/
                shareButton.gameObject.SetActive(false);
            }
            else
            {
                awardButton.gameObject.SetActive(true);
                /**分享功能**/
                shareButton.gameObject.SetActive(true);
                shareButton.textLabel.text = LanguageConfigManager.Instance.getLanguage("share04");
            }
        }
        else if (type == TotalLoginManagerment.WEEKLY)       //周末送
        {
            DateTime timen = TimeKit.getDateTimeMillis(ServerTimeKit.getMillisTime());
            int      today = (int)timen.DayOfWeek;
            if (today == 0)
            {
                today = 7;
            }
            if (loginAward.week > today || loginAward.isloginn != 1)
            {
                awardButton.gameObject.SetActive(false);
            }
            else
            {
                awardButton.gameObject.SetActive(true);
                if (loginAward.isAward == 1)
                {
                    awardButton.disableButton(true);
                    awardButton.textLabel.text = (LanguageConfigManager.Instance.getLanguage("total_alwayscan"));
                }
            }
        }
        else if (type == TotalLoginManagerment.HOLIDAY)
        {
            if (loginAward.day > TotalLoginManagerment.Instance.getTotalHoliday())
            {
                awardButton.gameObject.SetActive(false);
            }
            else
            {
                awardButton.gameObject.SetActive(true);
                if (loginAward.isAward == 1)
                {
                    awardButton.disableButton(true);
                    awardButton.textLabel.text = (LanguageConfigManager.Instance.getLanguage("total_alwayscan"));
                }
            }
        }
        else if (type == TotalLoginManagerment.NEWEVERYDAY)
        {
            DateTime timen = TimeKit.getDateTimeMillis(ServerTimeKit.getMillisTime());
            int      today = (int)timen.DayOfWeek;
            if (today == 0)
            {
                today = 7;
            }
            if (loginAward.totalDays > today || loginAward.isloginn != 1)
            {
                awardButton.gameObject.SetActive(false);
            }
            else
            {
                awardButton.gameObject.SetActive(true);
                if (loginAward.isAward == 1)
                {
                    awardButton.disableButton(true);
                    awardButton.textLabel.text = (LanguageConfigManager.Instance.getLanguage("total_alwayscan"));
                }
            }
        }
        awardButton.setFatherWindow(fatherWindow);
        /**分享功能**/
        shareButton.setFatherWindow(fatherWindow);
        awardButton.name = "awardButton:" + loginAward.prizeSid;
        if (loginAward.rewardType == TotalLoginManagerment.BIGPRIZE)
        {
            //backGround.spriteName="bar_blue_new";
            backGroundyellow.SetActive(false);
            backGroundblue.SetActive(true);
        }
        else
        {
            backGroundyellow.SetActive(true);
            backGroundblue.SetActive(false);
        }
        if (type == TotalLoginManagerment.EVERYDAY)
        {
            move.transform.localPosition = new Vector3(0, 0, 0);
            redday.SetActive(true);
            redWeekly.SetActive(false);
            titleday.gameObject.SetActive(true);
            titlenewLabel.gameObject.SetActive(false);
            titleweek.gameObject.SetActive(false);
            titleholiday.gameObject.SetActive(false);
            todayTitle.gameObject.SetActive(true);
            todayTitle.text = loginAward.totalDays.ToString();
        }
        else if (type == TotalLoginManagerment.NEWEVERYDAY)
        {
            move.transform.localPosition = new Vector3(0, 0, 0);
            redday.SetActive(false);
            redWeekly.SetActive(false);
            titleday.gameObject.SetActive(false);
            titleweek.gameObject.SetActive(false);
            titleholiday.gameObject.SetActive(false);
            todayTitle.gameObject.SetActive(false);
            titlenewLabel.gameObject.SetActive(true);
            string str = getTime(loginAward.totalDays);
            titlenewLabel.text = LanguageConfigManager.Instance.getLanguage("total_newday", str);
        }
        else if (type == TotalLoginManagerment.WEEKLY)
        {
            move.transform.localPosition = new Vector3(0, 0, 0);
            titleday.gameObject.SetActive(false);
            titleweek.gameObject.SetActive(true);
            titlenewLabel.gameObject.SetActive(false);
            titleholiday.gameObject.SetActive(false);
            weekTitle.gameObject.SetActive(true);
            weekTitle.text = loginAward.single.ToString();
            redday.SetActive(false);
            redWeekly.SetActive(true);
        }
        else
        {
            move.transform.localPosition = new Vector3(28, 0, 0);
            redday.SetActive(true);
            titlenewLabel.gameObject.SetActive(false);
            redWeekly.SetActive(false);
            titleday.gameObject.SetActive(false);
            titleweek.gameObject.SetActive(false);
            titleholiday.gameObject.SetActive(true);
            titleholiday.text = loginAward.holidayName + LanguageConfigManager.Instance.getLanguage("total_dayy");
            todayTitle.gameObject.SetActive(true);
            todayTitle.text = loginAward.day.ToString();
        }
    }