static CursorController() { if (Instance == null) { Instance = new CursorController(); Instance.CursorIsHide = true; } }
void Awake() { if (Instance == null) { cursorController = CursorController.Instance; Instance = this; } else if (Instance != this) { Destroy(gameObject); } DontDestroyOnLoad(gameObject); Instance.Initialize(); }