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

42 lines
963 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System.Collections;
using System.Collections.Generic;
using TMPro;
using UnityEngine;
//122界面的通用信息如下方的提示信息
public class Manager122Base : MonoBehaviour
{
public static Manager122Base instance;
public Control3DModelBt ; //发火按钮
public Control3DModelBt ; //引信按钮
public GameObject defalutPage; //默认的主菜单
private void Awake()
{
if (instance == null)
instance = this;
}
public TextMeshProUGUI downTipMsg;
/// <summary>
/// 切换下方提示信息
/// </summary>
/// <param name="content"></param>
public void Show122DwonMsg(string content)
{
if(!downTipMsg.transform.parent.gameObject.activeInHierarchy)
downTipMsg.transform.parent.gameObject.SetActive(true);
downTipMsg.text = content;
}
public void SetDownMsgState(bool value)
{
downTipMsg.transform.parent.gameObject.SetActive(value);
}
}