new audio manager
This commit is contained in:
19
Assets/Scripts/Sound.cs
Normal file
19
Assets/Scripts/Sound.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Audio;
|
||||
|
||||
[System.Serializable]
|
||||
public class Sound
|
||||
{
|
||||
public string name;
|
||||
public AudioClip clip;
|
||||
[Range(0f, 1f)]
|
||||
public float volume;
|
||||
[Range(0.1f, 3f)]
|
||||
public float pitch;
|
||||
public bool loop;
|
||||
[HideInInspector]
|
||||
public AudioSource source;
|
||||
public AudioMixerGroup outputMixer;
|
||||
}
|
||||
Reference in New Issue
Block a user