(client) feat:健康给予,路径优化,结算界面,商店界面 (#60)

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/60
This commit is contained in:
2025-10-10 14:08:23 +08:00
parent 9a797479ff
commit 16b49f3d3a
1900 changed files with 114053 additions and 34157 deletions

View File

@@ -10,6 +10,11 @@ namespace Prefab
public GameObject menu;
public ButtonPrefab buttonPrefab;
public void OnPointerExit(PointerEventData eventData)
{
Hide();
}
public void Show()
{
gameObject.SetActive(true);
@@ -17,7 +22,7 @@ namespace Prefab
public void Hide()
{
Destroy(this.gameObject);
Destroy(gameObject);
}
public void Init(List<(string name, UnityAction callback)> buttons)
@@ -27,6 +32,7 @@ namespace Prefab
Debug.LogError("Menu or ButtonPrefab is not assigned!");
return;
}
foreach (var (label, callback) in buttons)
{
// 实例化按钮预制体
@@ -56,9 +62,5 @@ namespace Prefab
}
}
}
public void OnPointerExit(PointerEventData eventData)
{
Hide();
}
}
}