| | |
| | | using Core.Economy; |
| | | using KTGMGemClient; |
| | | using TMPro; |
| | | using TowerDefense.Level; |
| | | using UnityEngine; |
| | |
| | | |
| | | protected Currency currency; |
| | | |
| | | private ParticleSystem goldGetPs;//金币获得动画 |
| | | |
| | | private void Start() |
| | | { |
| | | goldGetPs = transform.Find("CurrencyImage/Effect_UI_JinBi_HuoDe/Particle System (6)").GetComponent<ParticleSystem>(); |
| | | |
| | | if (EndlessLevelManager.instanceExists) |
| | | { |
| | | currency = EndlessLevelManager.instance.Currency; |
| | |
| | | } |
| | | else |
| | | Debug.LogError("[UI] No EndlessLevelManager to get currency from"); |
| | | |
| | | EventCenter.Ins.Add((int)KTGMGemClient.EventType.PlayGetGoldPS, PlayGetGoldPS); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | |
| | | } |
| | | |
| | | public void PlayGetGoldPS(){ |
| | | goldGetPs.Play(); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 在数字中加入逗号 |
| | | /// </summary> |