void Awake() { instance = this; if (dontDestroyOnLoad) { DontDestroyOnLoad(gameObject); } }
void OnDestroy() { instance = null; }