private void Awake() { if (s_Instance != null && s_Instance != this) { Destroy(gameObject); } s_Instance = this; DontDestroyOnLoad(gameObject); }
void OnApplicationQuit() { s_Instance = null; }