添加音效 v0.1版
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user