using System.Collections; using System.Collections.Generic; using TMPro; using UnityEngine; public class UpScreen122Page : MonoBehaviour { public GameObject defalutPage; //ĬÈϵÄÖ÷²Ëµ¥ public TextMeshProUGUI downTipMsg; private void OnEnable() { Manager122Base.instance.defalutPage = defalutPage; Manager122Base.instance.downTipMsg = downTipMsg; FindAnyObjectByType().downPage = gameObject; } private void Start() { FindAnyObjectByType().OnInit(0); } // Update is called once per frame void Update() { if (transform.GetSiblingIndex() != 0) transform.SetSiblingIndex(0); } }