private void Awake() { // Porquesi if (instance == null) { instance = this; } }
private void OnDestroy() { if (instance == this) { instance = null; } Destroy(this); }