27 lines
522 B
C#
27 lines
522 B
C#
using UnityEngine;
|
|
|
|
public class MenuInputRouter : MonoBehaviour
|
|
{
|
|
[SerializeField] private PaymentUI paymentUI;
|
|
|
|
|
|
void Update()
|
|
{
|
|
UiControls();
|
|
|
|
if (In.GetButtonDown(InSignal.Service)) SceneLoader.LoadScene("Settings");
|
|
|
|
}
|
|
|
|
|
|
private void UiControls()
|
|
{
|
|
if (In.GetButtonDown(InSignal.DownLeft)) paymentUI.Next();
|
|
if (In.GetButtonDown(InSignal.UpLeft)) paymentUI.Previous();
|
|
if (In.GetButtonDown(InSignal.DownRight)) paymentUI.Choose();
|
|
}
|
|
|
|
|
|
|
|
}
|