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