修改结算界面v0.2
增加水波纹效果
This commit is contained in:
@@ -44,25 +44,9 @@ namespace GameFramework
|
||||
|
||||
void ShowGameOver()
|
||||
{
|
||||
// 显示结束画面
|
||||
if (gameOverCanvas != null)
|
||||
gameOverCanvas.enabled = true;
|
||||
|
||||
// 暂停游戏
|
||||
if (TimeController.Instance != null)
|
||||
TimeController.Instance.Pause();
|
||||
|
||||
// 显示鼠标
|
||||
Cursor.visible = true;
|
||||
Cursor.lockState = CursorLockMode.None;
|
||||
|
||||
// 选中确认按钮
|
||||
if (confirmButton != null)
|
||||
confirmButton.Select();
|
||||
|
||||
// 播放音效
|
||||
if (AudioManager.Instance != null && gameOverSFX != null)
|
||||
AudioManager.Instance.PlaySFX(gameOverSFX);
|
||||
// 失败时由 GameLostOverlay 接管 UI,这里不再显示旧 Canvas
|
||||
// 暂停和鼠标由 GameManager + GameLostOverlay 统一处理
|
||||
return;
|
||||
}
|
||||
|
||||
void Update()
|
||||
|
||||
Reference in New Issue
Block a user