添加音效 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
+5
View File
@@ -1,5 +1,6 @@
using System;
using UnityEngine;
using GameFramework;
namespace IndianOceanAssets.Engine2_5D
{
@@ -109,6 +110,10 @@ namespace IndianOceanAssets.Engine2_5D
_stateTimer = 0f;
_lastEchoTime = Time.time;
// 播放摇铃音效
if (AudioManager.Instance != null)
AudioManager.Instance.PlaySFXFromResources("SFX/Bell", 0.9f);
// 记录释放时刻的玩家位置(回声中心固定,不跟随移动)
Vector3 p = transform.position;
_center = new Vector2(p.x, p.z);