35 lines
923 B
C#
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);
|
|
}
|
|
}
|