添加音效 v0.1版

This commit is contained in:
2026-07-04 18:35:23 +08:00
parent 8a6721f22a
commit 8ae4469c72
37 changed files with 588 additions and 7 deletions
@@ -39,6 +39,10 @@ namespace IndianOceanAssets.Engine2_5D
if (isPlayer && onPlayerDamaged != null)
onPlayerDamaged.Invoke();
// 播放受伤音效
if (isPlayer && AudioManager.Instance != null)
AudioManager.Instance.PlaySFXFromResources("SFX/Hurt", 0.7f);
// If dead
if (health <= 0)
{