|
|
|
|
|
|
using System.Collections; |
|
|
|
using System.Collections.Generic; |
|
|
|
using UnityEngine; |
|
|
|
using UnityEngine; |
|
|
|
using UnityEngine.XR.ARFoundation; |
|
|
|
using UnityEngine.XR.Management; |
|
|
|
|
|
|
|
namespace UnityEngine.XR.ARFoundation.Samples |
|
|
|
{ |
|
|
|
|
|
|
GameObject m_BackButton; |
|
|
|
public GameObject backButton |
|
|
|
{ |
|
|
|
get { return m_BackButton; } |
|
|
|
set { m_BackButton = value; } |
|
|
|
get => m_BackButton; |
|
|
|
set => m_BackButton = value; |
|
|
|
} |
|
|
|
|
|
|
|
void Start() |
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
void Update() |
|
|
|
{ |
|
|
|
if (Input.GetKeyDown(KeyCode.Escape)) |
|
|
|
{ |
|
|
|
BackButtonPressed(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
SceneManager.LoadScene("Menu", LoadSceneMode.Single); |
|
|
|
LoaderUtility.Deinitialize(); |
|
|
|
if (Application.CanStreamedLevelBeLoaded("Menu")) |
|
|
|
{ |
|
|
|
SceneManager.LoadScene("Menu", LoadSceneMode.Single); |
|
|
|
LoaderUtility.Deinitialize(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |