created audio manager and Sound class

This commit is contained in:
DerTyp187
2022-01-02 14:01:18 +01:00
parent 8c6d063e53
commit be50ec5eed
10 changed files with 189 additions and 6 deletions

View 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;
}