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 13:46:10 +00:00
|
|
|
|
[Range(1f, 3f)]
|
|
|
|
|
public float pitch = 1f;
|
2021-01-31 10:43:20 +00:00
|
|
|
|
|
2021-01-31 11:02:31 +00:00
|
|
|
|
public bool loop = false;
|
|
|
|
|
|
2021-01-31 10:43:20 +00:00
|
|
|
|
[HideInInspector]
|
|
|
|
|
public AudioSource source;
|
|
|
|
|
}
|