添加音效 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
@@ -1,5 +1,6 @@
using UnityEngine;
using System.Collections;
using GameFramework;
namespace IndianOceanAssets.Engine2_5D
{
@@ -89,6 +90,10 @@ namespace IndianOceanAssets.Engine2_5D
isRolling = true;
lastRollTime = Time.time;
// 播放冲刺音效
if (AudioManager.Instance != null)
AudioManager.Instance.PlaySFXFromResources("SFX/Dash", 0.8f);
float timer = 0.2f;
Vector3 rollDir = new Vector3(inputDirection.x, 0f, inputDirection.y).normalized;