void Awake() { if (null == s_Instance) { s_Instance = this; DontDestroyOnLoad(this.gameObject); } else { Destroy(this.gameObject); } }
void OnDestroy() { s_Instance = null; }