Example #1
0
 static CursorController()
 {
     if (Instance == null)
     {
         Instance = new CursorController();
         Instance.CursorIsHide = true;
     }
 }
Example #2
0
        void Awake() {
            if (Instance == null) {
                cursorController = CursorController.Instance;
                Instance = this;
            } else if (Instance != this) {
                Destroy(gameObject);
            }

            DontDestroyOnLoad(gameObject);

            Instance.Initialize();
        }