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