public void ShowLoot(LootContainer loot)
    {
        //this can actually get called before Start(), so make sure the ref is set here
        cargoList = GetComponent<CargoHoldList>();

        this.loot = loot;
        title.text = loot.name;
        gameObject.SetActive(true);
        cargoList.Refresh();
    }
 public void Dismiss()
 {
     loot = null;
     gameObject.SetActive(false);
 }
 public PlayerTakeLootRequest(PlayerShip player, LootContainer lootContainer, int itemIndex)
 {
     Player = player;
     Loot = lootContainer;
     ItemIndex = itemIndex;
 }