SystemManager.cs 852 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. using EZXR.Glass.Projection;
  2. using UnityEngine;
  3. namespace EZXR.Glass.Core
  4. {
  5. [ScriptExecutionOrder(-40)]
  6. public class SystemManager : MonoBehaviour
  7. {
  8. private static SystemManager instance;
  9. float lastBackPressTime = 0f;
  10. // Start is called before the first frame update
  11. void Awake()
  12. {
  13. instance = this;
  14. Instantiate(ResourcesManager.Load<GameObject>("OSEventSystem"));
  15. }
  16. private void Start()
  17. {
  18. if (ProjectionManager.Instance == null)
  19. {
  20. GameObject projManager = Instantiate(ResourcesManager.Load<GameObject>("ProjectionManager"));
  21. }
  22. }
  23. // Update is called once per frame
  24. void Update()
  25. {
  26. }
  27. private void OnApplicationQuit()
  28. {
  29. }
  30. }
  31. }