24 lines
710 B
C#
24 lines
710 B
C#
using System;
|
|
using Code.Infrastructure.Audio;
|
|
using Reflex.Attributes;
|
|
|
|
namespace Code.Infrastructure.UI.Panels
|
|
{
|
|
public class MenuChoosePanel : UIPanel
|
|
{
|
|
[Inject] IAudioService _audioService;
|
|
public void PlaySelectSound() => _audioService.PlayOneShot(AudioNames.UISounds, 7);
|
|
public void PlayDeselectSound() => _audioService.PlayOneShot(AudioNames.UISounds, 8);
|
|
public void PlayClickSound() => _audioService.PlayOneShot(AudioNames.UISounds, 1);
|
|
public override void Open(Action callback = null)
|
|
{
|
|
|
|
}
|
|
|
|
public override void Close(Action callback = null)
|
|
{
|
|
|
|
callback?.Invoke();
|
|
}
|
|
}
|
|
} |