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