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

            s_Instance = null;
        }
示例#3
0
 public void Save()
 {
     PersistentDataManager.SetDirty(this);
 }
示例#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);
 }