private void Awake() { if (_instance != null && _instance != this) { Destroy(this.gameObject); return; } else { _instance = this; } DontDestroyOnLoad(this); }
protected override void AssignToParent() { Persistent.Comprobante = PersistentParent; PersistentParent.AddChild(Persistent); }