using SC.XR.Unity.Module_InputSystem; using System.Collections; using System.Collections.Generic; using UnityEngine; using XRTool.Util; public class LoadingMgr : UnitySingleton { public GameObject loading; // Start is called before the first frame update void Start() { loading = transform.Find("loading").gameObject; loading.SetActive(false); } public void ShowLoading(float time) { loading.SetActive(true); SCInputModule.Instance.CanProcessEvent = false; Invoke("HeidLoading", time); } public void HeidLoading() { loading.SetActive(false); SCInputModule.Instance.CanProcessEvent = true; } }