实现制作人员名单
This commit is contained in:
@@ -23,8 +23,13 @@ namespace GameFramework
|
||||
[SerializeField] GameObject settingsPanel;
|
||||
[SerializeField] Button settingsBackButton;
|
||||
|
||||
[Header("Credits Panel")]
|
||||
[SerializeField] GameObject creditsPanel;
|
||||
[SerializeField] Button creditsCloseButton;
|
||||
|
||||
void Start()
|
||||
{
|
||||
Debug.Log("[MainMenu] creditsButton=" + (creditsButton != null ? creditsButton.name : "NULL") + " creditsPanel=" + (creditsPanel != null ? creditsPanel.name : "NULL"));
|
||||
// 绑定按钮事件
|
||||
if (startButton != null)
|
||||
startButton.onClick.AddListener(OnStartClick);
|
||||
@@ -41,9 +46,14 @@ namespace GameFramework
|
||||
if (settingsBackButton != null)
|
||||
settingsBackButton.onClick.AddListener(OnSettingsBackClick);
|
||||
|
||||
// 确保设置面板初始关闭
|
||||
if (creditsCloseButton != null)
|
||||
creditsCloseButton.onClick.AddListener(OnCreditsCloseClick);
|
||||
|
||||
// 确保面板初始关闭
|
||||
if (settingsPanel != null)
|
||||
settingsPanel.SetActive(false);
|
||||
if (creditsPanel != null)
|
||||
creditsPanel.SetActive(false);
|
||||
}
|
||||
|
||||
void OnStartClick()
|
||||
@@ -60,8 +70,15 @@ namespace GameFramework
|
||||
|
||||
void OnCreditsClick()
|
||||
{
|
||||
// TODO: 实现制作人员界面
|
||||
Debug.Log("[MainMenu] 制作人员 - 待实现");
|
||||
Debug.Log("[MainMenu] OnCreditsClick called! creditsPanel=" + (creditsPanel != null ? creditsPanel.name : "NULL"));
|
||||
if (creditsPanel != null)
|
||||
creditsPanel.SetActive(true);
|
||||
}
|
||||
|
||||
void OnCreditsCloseClick()
|
||||
{
|
||||
if (creditsPanel != null)
|
||||
creditsPanel.SetActive(false);
|
||||
}
|
||||
|
||||
void OnSettingsBackClick()
|
||||
|
||||
Reference in New Issue
Block a user