27 lines
913 B
C#
27 lines
913 B
C#
using UnityEngine;
|
|
|
|
namespace Ashwild.Audio
|
|
{
|
|
[CreateAssetMenu(fileName = "NewSurface", menuName = "Audio/Surface Sound Profile")]
|
|
public class SurfaceSoundProfile : ScriptableObject
|
|
{
|
|
[Header("Match by PhysicsMaterial (objects, floors)")]
|
|
public PhysicsMaterial physicsMaterial;
|
|
|
|
[Header("Match by TerrainLayer (painted terrain)")]
|
|
public TerrainLayer terrainLayer;
|
|
|
|
[Header("Footstep Audio")]
|
|
public AudioClip[] footstepClips;
|
|
[Range(0f, 1f)] public float walkVolume = 0.4f;
|
|
[Range(0f, 1f)] public float sprintVolume = 0.7f;
|
|
[Range(0f, 1f)] public float crouchVolume = 0.15f;
|
|
[Range(0f, 3f)] public float pitchMin = 0.9f;
|
|
[Range(0f, 3f)] public float pitchMax = 1.1f;
|
|
|
|
[Header("Landing Audio")]
|
|
public AudioClip[] landingClips;
|
|
[Range(0f, 1f)] public float landingVolume = 0.5f;
|
|
}
|
|
}
|