SquareDash/Assets/Scripts/Audio/FMODEvents.cs
2023-12-29 02:26:42 +01:00

26 lines
731 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using FMODUnity;
public class FMODEvents : MonoBehaviour
{
[field: Header("Jump SFX")]
[field: SerializeField] public EventReference jumped { get; private set; }
[field: Header("Die SFX")]
[field: SerializeField] public EventReference died { get; private set; }
[field: Header("Level Music")]
[field: SerializeField] public EventReference music { get; private set; }
public static FMODEvents instance { get; private set; }
private void Awake()
{
if (instance!=null)
{
Debug.LogError("Found more than one FMOD Events instance in the scene.");
}
instance = this;
}
}