using System.Collections; using System.Collections.Generic; using TMPro; using UnityEngine; using UnityEngine.UI; public enum TipType { None, 水, 电, 煤 } public class UITIP : MonoBehaviour { public TipType type; public string Message; // Start is called before the first frame update void Start() { GameObject go = GameObject.Find("Canvas/FloatingTip"); GetComponentInChildren