16 lines
312 B
C#
16 lines
312 B
C#
using UnityEngine;
|
|
using OHM.UnityToolkit;
|
|
using UnityEngine.Serialization;
|
|
|
|
public class ButtonSoundsController : UniqueInstance<ButtonSoundsController>
|
|
{
|
|
[SerializeField]
|
|
[FormerlySerializedAs("clickSound")]
|
|
private SFX _clickSound;
|
|
|
|
public void OnButtonClick()
|
|
{
|
|
_clickSound.Play(base.transform);
|
|
}
|
|
}
|