(client) feat:添加角色定义,为匿名定义建立索引,修复一些数据定义中的错误 (#39)

Co-authored-by: zzdxxz <2079238449@qq.com>
Co-committed-by: zzdxxz <2079238449@qq.com>
This commit is contained in:
2025-07-19 19:03:53 +08:00
committed by TheRedApricot
parent 44cfb55985
commit 389376ec47
43 changed files with 3081 additions and 607 deletions

View File

@ -0,0 +1,26 @@
using TMPro;
using UnityEngine;
using UnityEngine.Events;
using UnityEngine.UI;
namespace Prefab
{
public class ButtonPrefab:MonoBehaviour
{
public Button button;
public TMP_Text text;
public string Label
{
get{return text.text;}
set{text.text = value;}
}
public void AddListener(UnityAction callback)
{
button.onClick.AddListener(callback);
}
}
}