添加音效 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,6 +1,7 @@
using System;
using System.Collections.Generic;
using UnityEngine;
using GameFramework;
namespace IndianOceanAssets.Engine2_5D
{
@@ -66,6 +67,10 @@ namespace IndianOceanAssets.Engine2_5D
_remainingLanterns--;
_lastPlaceTime = Time.time;
// 播放灵灯放置音效
if (AudioManager.Instance != null)
AudioManager.Instance.PlaySFXFromResources("SFX/Lantern", 0.8f);
// 在玩家位置实例化灵灯
GameObject lanternObj = Instantiate(lanternPrefab, transform.position, Quaternion.identity);
SpiritLantern lantern = lanternObj.GetComponent<SpiritLantern>();