private void OnDisable()
 {
     PersistentDataManager.UnregisterPersister(this);
 }
        void OnDisable()
        {
            PersistentDataManager.UnregisterPersister(this);

            s_Instance = null;
        }
Exemple #3
0
 public void Save()
 {
     PersistentDataManager.SetDirty(this);
 }
Exemple #4
0
 void OnEnable()
 {
     collider = GetComponent <CircleCollider2D>();
     PersistentDataManager.RegisterPersister(this);
 }
 private void OnEnable()
 {
     PersistentDataManager.RegisterPersister(this);
 }
 public void OverrideAlreadyTriggered(bool alreadyTriggered)
 {
     m_AlreadyTriggered = alreadyTriggered;
     PersistentDataManager.SetDirty(this);
 }