1234567891011121314151617181920212223242526272829303132333435363738 |
- using EZXR.Glass.Projection;
- using UnityEngine;
- namespace EZXR.Glass.Core
- {
- [ScriptExecutionOrder(-40)]
- public class SystemManager : MonoBehaviour
- {
- private static SystemManager instance;
- float lastBackPressTime = 0f;
- // Start is called before the first frame update
- void Awake()
- {
- instance = this;
- Instantiate(ResourcesManager.Load<GameObject>("OSEventSystem"));
- }
- private void Start()
- {
- if (ProjectionManager.Instance == null)
- {
- GameObject projManager = Instantiate(ResourcesManager.Load<GameObject>("ProjectionManager"));
- }
- }
- // Update is called once per frame
- void Update()
- {
- }
- private void OnApplicationQuit()
- {
- }
- }
- }
|