//** AddSlot ** //Insert new slot public void AddSlot(int idSkin, int idSlot, string matName) { SkinSlots toAdd = new SkinSlots(); toAdd.IDSkin = idSkin; toAdd.IDSkinSlot = idSlot; toAdd.MaterialName = matName; skinksSlotsList.Add(toAdd); //Debug.Log("AddSlot" }
//** UpdateSlot ** //Update a slot public void UpdateSlot(int idSkin, int idSlot, string matName) { SkinSlots record = skinksSlotsList.Find(x => x.IDSkin == idSkin && x.IDSkinSlot == idSlot); record.MaterialName = matName; }