GlobalGameJam-2021/Assets/Scripts/AudioSound.cs

20 lines
329 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 11:14:00 +00:00
[Range(0f, 3f)]
public float pitch = 0f;
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;
}