23 lines
274 B
C#
23 lines
274 B
C#
using UnityEngine;
|
|
using System;
|
|
|
|
[Serializable]
|
|
public class Sound
|
|
{
|
|
|
|
public string name;
|
|
|
|
[HideInInspector]
|
|
public AudioSource audioSource;
|
|
|
|
public AudioClip clip;
|
|
|
|
[Range(0f, 1f)]
|
|
public float volume;
|
|
|
|
[Range(0.1f, 3f)]
|
|
public float pitch;
|
|
|
|
public bool loop;
|
|
|
|
} |