HKMBFZ/Assets/Scripts/Szz_Scripts/UI/122/UpScreen122Page.cs

32 lines
705 B
C#

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<MyTest>().downPage = gameObject;
}
private void Start()
{
FindAnyObjectByType<MyTest>().OnInit(0);
}
// Update is called once per frame
void Update()
{
if (transform.GetSiblingIndex() != 0)
transform.SetSiblingIndex(0);
}
}