2021-01-31 10:43:20 +00:00
|
|
|
|
using UnityEngine;
|
|
|
|
|
using UnityEngine.Audio;
|
|
|
|
|
|
2021-01-31 10:52:14 +00:00
|
|
|
|
[System.Serializable]
|
2021-01-31 10:43:20 +00:00
|
|
|
|
public class AudioSound
|
|
|
|
|
{
|
|
|
|
|
public string name;
|
|
|
|
|
public AudioClip clip;
|
|
|
|
|
|
|
|
|
|
[Range(0f, 1f)]
|
|
|
|
|
public float volume;
|
2021-01-31 10:58:07 +00:00
|
|
|
|
[Range(0.1f, 3f)]
|
2021-01-31 10:43:20 +00:00
|
|
|
|
public float pitch;
|
|
|
|
|
|
|
|
|
|
[HideInInspector]
|
|
|
|
|
public AudioSource source;
|
|
|
|
|
}
|