init
This commit is contained in:
commit
16da8e4dde
333 changed files with 109229 additions and 0 deletions
22
Assets/Scripts/Sound.cs
Normal file
22
Assets/Scripts/Sound.cs
Normal file
|
@ -0,0 +1,22 @@
|
|||
using UnityEngine.Audio;
|
||||
using UnityEngine;
|
||||
|
||||
[System.Serializable]
|
||||
public class Sound{
|
||||
|
||||
public string name;
|
||||
|
||||
public AudioClip clip;
|
||||
|
||||
[Range(0f, 1f)]
|
||||
public float volume = 1f;
|
||||
[Range(0.1f, 3f)]
|
||||
public float pitch = 1f;
|
||||
|
||||
public bool loop;
|
||||
|
||||
public AudioMixerGroup mixerGroup;
|
||||
|
||||
[HideInInspector]
|
||||
public AudioSource source;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue