GlobalGameJam-2021/Assets/Scripts/AudioSound.cs

20 lines
326 B
C#
Raw Normal View History

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;
2021-01-31 11:02:31 +00:00
public bool loop = false;
2021-01-31 10:43:20 +00:00
[HideInInspector]
public AudioSource source;
}