void Awake() { if (instance == null) { instance = this; DontDestroyOnLoad(gameObject); Read(); } else { Destroy(this); } }
public void OnApplicationQuit() { instance = null; }