(client) feat:添加基地界面到游玩界面的过程,添加存档管理,技能树变得可用 (#58)

Co-authored-by: m0_75251201 <m0_75251201@noreply.gitcode.com>
Reviewed-on: http://47.107.252.169:3000/Roguelite-Game-Developing-Team/Gen_Hack-and-Slash-Roguelite/pulls/58
This commit is contained in:
2025-10-03 00:31:34 +08:00
parent aff747be17
commit dd9d90439d
134 changed files with 10322 additions and 4872 deletions

View File

@@ -41,20 +41,10 @@ namespace Prefab
// 创建一个新的回调函数,包含原始回调和隐藏菜单的操作
UnityAction wrappedCallback = () =>
{
try
{
// 执行原始回调
callback?.Invoke();
}
catch (System.Exception e)
{
Debug.LogError($"Error executing callback for button '{label}': {e.Message}");
}
finally
{
// 隐藏菜单
Hide();
}
// 执行原始回调
callback?.Invoke();
// 隐藏菜单
Hide();
};
// 添加包装后的回调