using UnityEngine; using TMPro; /** * 击杀小怪掉落 * @Author: chenxin * @Date: 2020-11-25 11:20:49 */ namespace KTGMGemClient { public class DropGold : MonoBehaviour { public TextMeshProUGUI GoldText; public void SetDrop(int drop) { if (GoldText == null) return; GoldText.text = $"+{drop}"; } } }