| | |
| | | int guide = PlayerPrefs.GetInt("GemBattleGuide"); |
| | | GameConfig.IsNewbie = guide == 0; |
| | | |
| | | //GameConfig.IsNewbie = true; |
| | | |
| | | GameConfig.IsNewbieStart = GameConfig.IsNewbie; |
| | | |
| | | if (GameConfig.IsNewbie) |
| | |
| | | if (GameConfig.EnergyCount == energyMax) |
| | | { |
| | | |
| | | Debug.Log("能量已满"); |
| | | //Debug.Log("能量已满"); |
| | | if (fireSkillBgImg.color != disColor) |
| | | { |
| | | fireSkillBgImg.color = disColor; |
| | |
| | | } |
| | | else |
| | | { |
| | | Debug.Log("能量达到一次使用"); |
| | | //Debug.Log("能量达到一次使用"); |
| | | if (fireSkillBgImg.color != normalColor) |
| | | { |
| | | fireSkillBgImg.color = normalColor; |
| | |
| | | |
| | | public bool IsGameRunning { get { return !isPause; } } |
| | | |
| | | private bool isUpgradeTowerLevel; |
| | | |
| | | // Update is called once per frame |
| | | void Update() |
| | | { |
| | |
| | | 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)); |
| | | } |
| | | |