| | |
| | | int guide = PlayerPrefs.GetInt("GemBattleGuide"); |
| | | GameConfig.IsNewbie = guide == 0; |
| | | |
| | | GameConfig.IsNewbie = true; |
| | | //GameConfig.IsNewbie = false; |
| | | |
| | | GameConfig.IsNewbieStart = GameConfig.IsNewbie; |
| | | |
| | |
| | | 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(); |
| | | } |
| | |
| | | AgentInsManager.instance.ExecAllWavelineAttack(fireSkillID, GameConfig.SkillLevel, false); |
| | | ++GameConfig.EndlessPortUseSkillTowerCount; |
| | | } |
| | | else |
| | | { |
| | | AudioSourceManager.Ins.Play(AudioEnum.UIDisable); |
| | | } |
| | | } |
| | | |
| | | public void GuideEnergyUp(int count) |
| | |
| | | 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) |
| | | { |
| | | EndlessRandomTower.instance.UpdateDescDisplay(); |
| | | isUpgradeTowerLevel = true; |
| | | } |
| | | |
| | | timeTextNew.text = ConvertTime((float)Math.Ceiling(startTime)); |
| | | } |
| | | |