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