From 1c3d649735e61a65087d9c281729912831f95fce Mon Sep 17 00:00:00 2001 From: wangguan <wangguan@kt007.com> Date: Tue, 24 Nov 2020 10:55:11 +0800 Subject: [PATCH] 修改技能为右侧充能释放 --- Assets/Scripts/TowerDefense/UI/HUD/EndlessGameUI.cs | 16 ++++++++-------- 1 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Assets/Scripts/TowerDefense/UI/HUD/EndlessGameUI.cs b/Assets/Scripts/TowerDefense/UI/HUD/EndlessGameUI.cs index e74ef6b..750cf7b 100644 --- a/Assets/Scripts/TowerDefense/UI/HUD/EndlessGameUI.cs +++ b/Assets/Scripts/TowerDefense/UI/HUD/EndlessGameUI.cs @@ -131,7 +131,7 @@ /// </summary> protected TextMeshProUGUI towerPriceText; - protected TextMeshProUGUI towerPriceText1; + //protected TextMeshProUGUI towerPriceText1; protected bool tdBuyDisable = false; @@ -849,6 +849,7 @@ // 让所有兵线上已经生成的所有agent播放一个死亡动画然后销毁 WaveLineAgentInsMgr[] waveLineAgentIns = AgentInsManager.instance.GetWaveLineList(); + GameOver(); for (int i = 0; i < waveLineAgentIns.Length; ++i) { @@ -858,7 +859,6 @@ } } - GameOver(); overTimer = new Timer(1.2f, SafelyCallGameOverEvent); } @@ -1906,16 +1906,16 @@ if (!towerPriceText) { towerPriceText = randomTowerBtn.transform.Find("cashText").GetComponent<TextMeshProUGUI>(); - towerPriceText1 = SkillTowerBtn.transform.Find("cashText").GetComponent<TextMeshProUGUI>(); + //towerPriceText1 = SkillTowerBtn.transform.Find("cashText").GetComponent<TextMeshProUGUI>(); if (towerPriceText) towerPriceText.text = tpMgr.currentTowerPrice.ToString(); - if (towerPriceText1) - towerPriceText1.text = tpMgr.currentTowerPrice.ToString(); + // if (towerPriceText1) + // towerPriceText1.text = tpMgr.currentTowerPrice.ToString(); } else { towerPriceText.text = tpMgr.currentTowerPrice.ToString(); - towerPriceText1.text = tpMgr.currentTowerPrice.ToString(); + //towerPriceText1.text = tpMgr.currentTowerPrice.ToString(); } // 无法支付新的塔防价格,按钮变灰. @@ -1935,7 +1935,7 @@ if (towerPriceText) { towerPriceText.color = new Color(0.5f, 0.5f, 0.5f); - towerPriceText1.color = new Color(0.5f, 0.5f, 0.5f); + //towerPriceText1.color = new Color(0.5f, 0.5f, 0.5f); } tdBuyDisable = true; } @@ -1953,7 +1953,7 @@ if (towerPriceText) { towerPriceText.color = new Color(1.0f, 1.0f, 1.0f); - towerPriceText1.color = new Color(1.0f, 1.0f, 1.0f); + //towerPriceText1.color = new Color(1.0f, 1.0f, 1.0f); } if (randomTowerBtn) -- Gitblit v1.9.1