private void OnInventoryChanged(InventoryChangeEvent newEvent) { inventory = newEvent.Inventory; Player = inventory.Parent; CreateCellsForInventoryPlayer(); CreateCellsForWeaponByPlayer(); CreateCellsForProtectionPlayer(); CreateCellsForNearbyItem(); }
private void InventoryChangedEventChannel_OnEventPublished(InventoryChangeEvent newEvent) { UpdateImage(newEvent.Inventory); }