MVH/Scripts/Game/Sound.cs

21 lines
319 B
C#
Raw Normal View History

2024-06-07 00:47:07 +02:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[System.Serializable]
public class Sound : MonoBehaviour
{
public AudioClip clip;
[Range(0f, 1f)]
public float volume;
[Range(0f, 1f)]
public float pitch;
public string soundName;
[HideInInspector]
public AudioSource source;
}