购买塔位后检测按钮提示特效
精灵升级页面关闭后开启提示倒计时
选择BUFF页面关闭后都重新倒计时
| | |
| | | { |
| | | isPopDone = false; |
| | | EndlessGameUI.instance.UpgradeAllTowerMinLevel(elfPanelUpgrade.GetUpgradeLevel() - 1); |
| | | EndlessRandomTower.instance.SetCountDown(true, true); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | HideBuffUI(); |
| | | |
| | | IconList[index].Fly(); |
| | | EndlessRandomTower.instance.SetCountDown(true); |
| | | EndlessRandomTower.instance.SetCountDown(true,true); |
| | | |
| | | if (BuffSelectCompleted != null) |
| | | BuffSelectCompleted(index); |
| | |
| | | |
| | | if (current >= result && num < 10)//自己的钱多 |
| | | { |
| | | //Debug.Log($"当前金币 :{current} 下一次购买需要金币:{result} 塔的数量:{num}"); |
| | | isCountStartDown = false; |
| | | needClickPS.Play(); |
| | | } |
| | | } |
| | | |
| | | |
| | | public void CheckMoney() |
| | | { |
| | | int result; |
| | | int.TryParse(cashText.text.ToString(), out result); |
| | | int current = EndlessLevelManager.instance.Currency.currentCurrency; |
| | | if (current < result && needClickPS.isPlaying)//自己的钱多 |
| | | { |
| | | needClickPS.Stop(); |
| | | isCountStartDown = true; |
| | | countDownTime = 0; |
| | | } |
| | | } |
| | | |
| | | private void CheckCurrencyEnough() |
| | | { |
| | |
| | | { |
| | | myOpenPS?.Play(); |
| | | AudioSourceManager.Ins.Play(AudioEnum.OpenTowerPlace); |
| | | EndlessRandomTower.instance.CheckMoney(); |
| | | } |
| | | |
| | | public void PutPs() |