赞
踩
using UnityEngine;
public class TooltipManager : MonoBehaviour
{
public static TooltipManager s_instance;
[SerializeField]
private GUIStyle m_GUIStyle = new GUIStyle();
public static GUIStyle s_GUIStyle
{
get
{
return s_instance.m_GUIStyle;
}
}
// 加载脚本实例时调用 Awake
private void Awake()
{
s_instance = this;
DontDestroyOnLoad(gameObject);
}
}
using UnityEngine;
public class TooltipManager : MonoBehaviour
{
public static TooltipManager s_instance;
[SerializeField]
private GUIStyle m_GUIStyle = new GUIStyle();
public static GUIStyle s_GUIStyle
{
get
{
return s_instance.m_GUIStyle;
}
}
// 加载脚本实例时调用 Awake
private void Awake()
{
s_instance = this;
DontDestroyOnLoad(gameObject);
}
}
先关注我 | 然后给我点赞 | 你今年就会 |
---|---|---|
git地址:https://gitee.com/asiworld
csdn博客地址:https://blog.csdn.net/JianShengShuaiest
bilibili地址:[https://space.bilibili.com/15766978](
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。