// Use this for initialization void Awake() { if (gs == null) { DontDestroyOnLoad(this.gameObject); gs = this; } else if (gs != this) { Destroy(gameObject); } }
void OnApplicationQuit() { s_instance = null; }