weixudong
2020-12-09 17c6e8b6f2aee4ed9a15c886f54a73f0cb61b125
Assets/Scripts/TowerDefense/UI/EndlessUIStart.cs
@@ -166,6 +166,8 @@
        int guide = PlayerPrefs.GetInt("GemBattleGuide");
        GameConfig.IsNewbie = guide == 0;
        //GameConfig.IsNewbie = true;
        GameConfig.IsNewbieStart = GameConfig.IsNewbie;
        if (GameConfig.IsNewbie)
@@ -532,7 +534,7 @@
            if (GameConfig.EnergyCount == energyMax)
            {
                Debug.Log("能量已满");
                //Debug.Log("能量已满");
                if (fireSkillBgImg.color != disColor)
                {
                    fireSkillBgImg.color = disColor;
@@ -542,7 +544,7 @@
            }
            else
            {
                Debug.Log("能量达到一次使用");
                //Debug.Log("能量达到一次使用");
                if (fireSkillBgImg.color != normalColor)
                {
                    fireSkillBgImg.color = normalColor;
@@ -610,6 +612,8 @@
    public bool IsGameRunning { get { return !isPause; } }
    private bool isUpgradeTowerLevel;
    // Update is called once per frame
    void Update()
    {
@@ -628,6 +632,14 @@
        if (bGameStart)
        {
            startTime += Time.deltaTime;
            if (!isUpgradeTowerLevel && startTime >= JsonDataCenter.DOUBLE_GEM_TIME)
            {
                EndlessGameUI.instance.UpgradeAllTowerMinLevel(1);
                EndlessRandomTower.instance.UpdateDescDisplay();
                isUpgradeTowerLevel = true;
            }
            timeTextNew.text = ConvertTime((float)Math.Ceiling(startTime));
        }