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