chenxin
2020-12-08 dae24c7b87d098e21ae7f66d998b4d607d0f8850
Assets/Scripts/TowerDefense/UI/EndlessUIStart.cs
@@ -166,7 +166,7 @@
        int guide = PlayerPrefs.GetInt("GemBattleGuide");
        GameConfig.IsNewbie = guide == 0;
        GameConfig.IsNewbie = true;
        //GameConfig.IsNewbie = true;
        GameConfig.IsNewbieStart = GameConfig.IsNewbie;
@@ -178,8 +178,8 @@
            HideUIMask();
            countDownTextNew.text = "";
            countDownTextNew.gameObject.SetActive(false);
            //GameObject go = Resources.Load<GameObject>("UI/Guide/GuidePanel");
            GameObject guideObj = Instantiate(Resources.Load<GameObject>("UI/Guide/GuidePanel"), transform.Find("Panel"));
            GameObject prefab = Resources.Load<GameObject>("UI/Guide/GuidePanel");
            GameObject guideObj = Instantiate(prefab, transform.Find("Panel"));
            guideObj.GetComponent<RectTransform>().offsetMin += tmpOffect;
            AddGuideEvent();
        }
@@ -630,6 +630,10 @@
        if (bGameStart)
        {
            startTime += Time.deltaTime;
            if (startTime >= JsonDataCenter.DOUBLE_GEM_TIME)
                EndlessGameUI.instance.UpgradeAllTowerMinLevel(1);
            timeTextNew.text = ConvertTime((float)Math.Ceiling(startTime));
        }