private void onDecorationsUnLoaded(DecorationInventoryData data) { decorationInventory.OnDecorationsChanged -= onDecorationsChanged; decorationInventory = null; cachedCalculatedDecorationInventory = null; }
private void onDecorationsLoaded(DecorationInventoryData data) { decorationInventory = data; decorationInventory.OnDecorationsChanged += onDecorationsChanged; this.onInventoryLoaded.InvokeSafe(DecorationType.Decoration); }