-Add LevelSpecificPlayerSFX prefabs for levels 1-1 and 1-2 -Configure checkpoints to activate sound effects, including pitch, volume, and audio editing -Rename the checkpoint effect object to Checkpoint VFX -Update the audio manager, the default value of the music target volume is 0.2 -Add SoundEffect structure to support sound parameter configuration -Optimize audio source creation and crossfade logic -Remove the old music control components and use the new audio management method
12 lines
280 B
C#
12 lines
280 B
C#
using UnityEngine;
|
|
|
|
using RR.Common.Audio;
|
|
|
|
namespace RR.Game2D.Behaviour.ScriptableObjects
|
|
{
|
|
[CreateAssetMenu(fileName = "SFXAsset", menuName = "Audio/SFX Assets/SFXAsset")]
|
|
public class SFXAsset : ScriptableObject
|
|
{
|
|
public SoundEffect[] soundEffects;
|
|
}
|
|
} |