using System.Collections;
|
using System.Collections.Generic;
|
using UnityEngine;
|
using UnityEngine.Events;
|
using UnityEngine.InputSystem.UI;
|
using UnityEngine.XR.Interaction.Toolkit.UI;
|
|
public class LoadPrefab : Singleton<LoadPrefab>
|
{
|
public GameObject VR;
|
public GameObject Screen;
|
|
public XRUIInputModule XRInputModule;
|
public InputSystemUIInputModule InputSystemUIInputModule;
|
|
public UnityEvent<bool> OnLoadComplete;
|
void Start()
|
{
|
if (SceneTypeManager.Inst.IsVRMode)
|
{
|
Screen.SetActive(false);
|
InputSystemUIInputModule.enabled = false;
|
}
|
else
|
{
|
VR.SetActive(false);
|
XRInputModule.enabled = false;
|
}
|
OnLoadComplete?.Invoke(SceneTypeManager.Inst.IsVRMode);
|
|
}
|
|
|
|
}
|