예제 #1
0
 /// <summary>
 /// When this object is disabled, increment the counter and update the quest tracker
 /// if incrementOn is set to Disable.
 /// </summary>
 public void OnDisable()
 {
     PersistentDataManager.UnregisterPersistentData(gameObject);
     if (incrementOn == IncrementOn.Disable)
     {
         TryIncrement();
     }
 }
 public void OnDisable()
 {
     if (!(listenForOnDestroy && (recordOn == RecordOn.Disable)))
     {
         return;
     }
     MarkDestroyed();
     PersistentDataManager.UnregisterPersistentData(gameObject);
 }
예제 #3
0
 public void OnDisable()
 {
     StopMonitoringConversationDistance();
     StopAllCoroutines();
     PersistentDataManager.UnregisterPersistentData(gameObject);
     if (listenForOnDestroy && trigger == DialogueSystemTriggerEvent.OnDisable)
     {
         TryStart(null);
     }
 }
 protected virtual void OnDisable()
 {
     PersistentDataManager.UnregisterPersistentData(gameObject);
 }
 public override void OnDisable()
 {
     base.OnDisable();
     SceneManager.sceneLoaded -= RecordCurrentScene;
     PersistentDataManager.UnregisterPersistentData(gameObject);
 }