| | |
| | | using TMPro; |
| | | using KTGMGemClient; |
| | | using DG.Tweening; |
| | | using System.Collections; |
| | | |
| | | public class EndlessRandomTower : Singleton<EndlessRandomTower> |
| | | { |
| | |
| | | |
| | | public ParticleSystem btnPS; |
| | | |
| | | IEnumerator ReadJson() |
| | | { |
| | | while (!GameConfig.JsonReadDone) |
| | | { |
| | | yield return 10; |
| | | } |
| | | |
| | | countDownLimit = JsonDataCenter.GetById<battle>(23).value; |
| | | Debug.Log("设置了倒计时:" + countDownLimit); |
| | | yield break; |
| | | } |
| | | |
| | | // Start is called before the first frame update |
| | | void Start() |
| | | { |
| | | countDownLimit = JsonDataCenter.GetById<battle>(23).value; |
| | | //Debug.Log("设置了倒计时:" + countDownLimit); |
| | | #if UNITY_ANDROID |
| | | |
| | | #endif |
| | | #if UNITY_IPHONE |
| | | |
| | | #endif |
| | | #if UNITY_EDITOR |
| | | |
| | | #endif |
| | | StartCoroutine(ReadJson()); |
| | | |
| | | if (!EndlessLevelManager.instanceExists) |
| | | Debug.LogError("[UI] No level manager for tower list"); |
| | | |