using DG.Tweening; using System; using System.Collections; using System.Collections.Generic; using TMPro; using UnityEngine; using UnityEngine.UI; public class UI_ContentPanel : BasePanel { public static UI_ContentPanel instance; public Image ContentPanel; public Button enter; public Button exit; public TextMeshProUGUI ContentText; public RawImage ContentrawImage; public string Tips ; protected override void Awake() { instance = this; //foreach (var child in GetComponentsInChildren()) //{ // if (child.name.Equals("ContentText")) // { // ContentText = child as TextMeshProUGUI; // } //} //ContentText = gameObject.transform.Find("ContentText").GetComponent(); //ContentPanel = GetControl("BG"); //enter = GetControl