| | |
| | | |
| | | public void UpdateDescDisplay() |
| | | { |
| | | int minLevel = 0; |
| | | |
| | | if (EndlessUIStart.instance.GameStartTime >= JsonDataCenter.DOUBLE_GEM_TIME) |
| | | minLevel = Mathf.Min(EndlessGameUI.instance.MinLevel, 1); |
| | | |
| | | int minLevel = Mathf.Min(EndlessGameUI.instance.MinLevel, 1); |
| | | NormalDesc.text = $"购买{minLevel + 1}级宝石"; |
| | | } |
| | | |
| | |
| | | if (isCountStartDown) |
| | | { |
| | | countDownTime += Time.deltaTime; |
| | | //Debug.Log("倒计时中"); |
| | | if (countDownTime > countDownLimit) |
| | | { |
| | | |
| | |
| | | if (gameUI.isBuilding) |
| | | gameUI.CancelGhostPlacement(); |
| | | |
| | | if (EndlessUIStart.instance.GameStartTime >= JsonDataCenter.DOUBLE_GEM_TIME) |
| | | { |
| | | if (level == -1) |
| | | level = Mathf.Min(EndlessGameUI.instance.MinLevel, 1); |
| | | } |
| | | else |
| | | { |
| | | if (level == -1) |
| | | level = 0; |
| | | } |
| | | if (level == -1) |
| | | level = Mathf.Min(EndlessGameUI.instance.MinLevel, 1); |
| | | |
| | | return gameUI.RandomPlaceTower(tower, posx, posy, level, cost, false, isFirstAppear); |
| | | } |