add project files
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user