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