购买塔位后检测按钮提示特效
精灵升级页面关闭后开启提示倒计时
选择BUFF页面关闭后都重新倒计时
4 files modified
18 ■■■■ changed files
Assets/Scripts/TowerDefense/Level/EndlessLevelManager.cs 1 ●●●● patch | view | raw | blame | history
Assets/Scripts/TowerDefense/UI/EndlessBuffSelect.cs 2 ●●● patch | view | raw | blame | history
Assets/Scripts/TowerDefense/UI/HUD/EndlessRandomTower.cs 14 ●●●●● patch | view | raw | blame | history
Assets/Scripts/TowerDefense/UI/HUD/PlacementTile.cs 1 ●●●● patch | view | raw | blame | history
Assets/Scripts/TowerDefense/Level/EndlessLevelManager.cs
@@ -614,6 +614,7 @@
        {
            isPopDone = false;
            EndlessGameUI.instance.UpgradeAllTowerMinLevel(elfPanelUpgrade.GetUpgradeLevel() - 1);
            EndlessRandomTower.instance.SetCountDown(true, true);
        }
        /// <summary>
Assets/Scripts/TowerDefense/UI/EndlessBuffSelect.cs
@@ -113,7 +113,7 @@
            HideBuffUI();
            IconList[index].Fly();
            EndlessRandomTower.instance.SetCountDown(true);
            EndlessRandomTower.instance.SetCountDown(true,true);
            if (BuffSelectCompleted != null)
                BuffSelectCompleted(index);
Assets/Scripts/TowerDefense/UI/HUD/EndlessRandomTower.cs
@@ -312,12 +312,24 @@
        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()
    {
Assets/Scripts/TowerDefense/UI/HUD/PlacementTile.cs
@@ -300,6 +300,7 @@
        {
            myOpenPS?.Play();
            AudioSourceManager.Ins.Play(AudioEnum.OpenTowerPlace);
            EndlessRandomTower.instance.CheckMoney();
        }
        public void PutPs()