From 000e8cbabb0639d2c4b90ebc28f08256f028d209 Mon Sep 17 00:00:00 2001 From: chenxin <chenxin6991@163.com> Date: Sat, 12 Dec 2020 16:07:04 +0800 Subject: [PATCH] 产生2级塔逻辑 --- Assets/Scripts/TowerDefense/UI/HUD/EndlessRandomTower.cs | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Assets/Scripts/TowerDefense/UI/HUD/EndlessRandomTower.cs b/Assets/Scripts/TowerDefense/UI/HUD/EndlessRandomTower.cs index 6494829..357afd1 100644 --- a/Assets/Scripts/TowerDefense/UI/HUD/EndlessRandomTower.cs +++ b/Assets/Scripts/TowerDefense/UI/HUD/EndlessRandomTower.cs @@ -86,7 +86,8 @@ public void UpdateDescDisplay() { - int minLevel = Mathf.Min(EndlessGameUI.instance.MinLevel, 1); + int minLevel = GameConfig.IsUpgradeTowerLevel ? 1 : 0; + NormalDesc.text = $"购买{minLevel + 1}级宝石"; } @@ -353,7 +354,9 @@ gameUI.CancelGhostPlacement(); if (level == -1) - level = Mathf.Min(EndlessGameUI.instance.MinLevel, 1); + { + level = GameConfig.IsUpgradeTowerLevel ? 1 : 0; + } return gameUI.RandomPlaceTower(tower, posx, posy, level, cost, false, isFirstAppear); } -- Gitblit v1.9.1