20 lines
407 B
C#
20 lines
407 B
C#
|
|
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;
|
||
|
|
}
|