2022-04-11 13:34:14 +00:00
|
|
|
using System.Collections;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using UnityEngine;
|
|
|
|
using TMPro;
|
|
|
|
using UnityEngine.UI;
|
|
|
|
|
|
|
|
public class XRGUI : MonoBehaviour
|
|
|
|
{
|
|
|
|
[SerializeField]
|
|
|
|
private Button SettingsButton;
|
|
|
|
|
|
|
|
[SerializeField]
|
|
|
|
private Button LoadButton;
|
|
|
|
|
|
|
|
[SerializeField]
|
|
|
|
private Button ExitButton;
|
|
|
|
|
|
|
|
// Start is called before the first frame update
|
|
|
|
void Start()
|
|
|
|
{
|
|
|
|
SettingsButton.onClick.AddListener(() =>
|
|
|
|
{
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
LoadButton.onClick.AddListener(() =>
|
|
|
|
{
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
ExitButton.onClick.AddListener(() =>
|
|
|
|
{
|
|
|
|
Debug.Log("Clicked");
|
2022-04-25 09:26:34 +00:00
|
|
|
//UnityEditor.EditorApplication.isPlaying = false;
|
2022-04-11 13:34:14 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Update is called once per frame
|
|
|
|
void Update()
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|