//Buy/Sell Items public void BuyItem(int _index) { ItemDisplay Temp = ItemScrollContentReferences[_index]; if (Temp.thisItem.FundsCost <= FundsLeft) //can i afford? { //Refund the current item in that slot; pay for the new one and equip it FundsLeft += playerData.EquippedItems[ItemWorked].FundsCost; FundsLeft -= Temp.thisItem.FundsCost; Temp.EquipMe(ItemWorked); //Refresh Equipped Markers RefreshItemListEquippedStatus(); } else //bitch is broke { NotEnoughFunds(); } }