42 lines
963 B
C#
42 lines
963 B
C#
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);
|
||
|
||
}
|
||
}
|