protected void OnDisable() { if (Instance == this) { Instance = null; } }
protected void OnEnable() { if (Instance != null && Instance != this) { gameObject.SetActive(false); return; } Instance = this; }