(client) feat:添加预制件脚本,规范化Dev菜单加载
This commit is contained in:
17
Client/Assets/Scripts/Prefab/TextPrefab.cs
Normal file
17
Client/Assets/Scripts/Prefab/TextPrefab.cs
Normal file
@ -0,0 +1,17 @@
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Prefab
|
||||
{
|
||||
public class TextPrefab : MonoBehaviour
|
||||
{
|
||||
public TMP_Text text;
|
||||
|
||||
public string Label
|
||||
{
|
||||
get{return text.text;}
|
||||
set{text.text = value;}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user