mirror of
https://github.com/DerTyp7/defrain-shooter-unity.git
synced 2025-10-30 13:07:10 +01:00
created audio manager and Sound class
This commit is contained in:
21
Assets/Scripts/Audio/Sound.cs
Normal file
21
Assets/Scripts/Audio/Sound.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using UnityEngine.Audio;
|
||||
using UnityEngine;
|
||||
|
||||
[System.Serializable]
|
||||
public class Sound
|
||||
{
|
||||
public string name;
|
||||
|
||||
public AudioClip clip;
|
||||
|
||||
[Range(0f, 1f)]
|
||||
public float volume;
|
||||
|
||||
[Range (.1f, 3f)]
|
||||
public float pitch;
|
||||
|
||||
[HideInInspector]
|
||||
public AudioSource source;
|
||||
|
||||
public bool loop;
|
||||
}
|
||||
Reference in New Issue
Block a user