GlobalGameJam-2021/Assets/Scripts/AudioSound.cs
GamerClassN7 10208a4bbc Looping
2021-01-31 12:02:44 +01:00

20 lines
326 B
C#

using UnityEngine;
using UnityEngine.Audio;
[System.Serializable]
public class AudioSound
{
public string name;
public AudioClip clip;
[Range(0f, 1f)]
public float volume;
[Range(0.1f, 3f)]
public float pitch;
public bool loop = false;
[HideInInspector]
public AudioSource source;
}