private void OnDisable() { InventoryManager.Instance.onEquipItem -= OnEquipItem; PersistentDataManager.UnregisterPersister(this); itemSet.onListChange -= OnItemListChange; }
private void OnDisable() { heldItemSpriteRend.enabled = false; PersistentDataManager.UnregisterPersister(this); OnStart.RemoveListener(StartItem); OnHold.RemoveListener(HoldItem); OnEnd.RemoveListener(EndItem); }
private void OnDestroy() { PersistentDataManager.UnregisterPersister(this); }
void OnDisable() { PersistentDataManager.UnregisterPersister(this); }
void OnDisable() { PersistentDataManager.UnregisterPersister(this); instance = null; }
protected virtual void OnDisable() { PersistentDataManager.UnregisterPersister(this); }