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

35 lines
923 B
C#

using System.Collections;
using System.Collections.Generic;
using TMPro;
using UnityEngine;
public class UpScreen122Page : MonoBehaviour
{
public GameObject defalutPage; //默认的主菜单
public TextMeshProUGUI downTipMsg;
public TextMeshProUGUI ;
public TextMeshProUGUI ;
private void OnEnable()
{
Manager122Base.instance.defalutPage = defalutPage;
Manager122Base.instance.downTipMsg = downTipMsg;
Manager122Base.instance.jifa = ;
.text = Manager122Base.instance.isJiFa? "击发开关:开": "击发开关:关";
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);
}
}