void Start() { changeGear = gladiator.GetComponentInChildren <ChangeGear>(); foreach (string item in defaultItems) { changeGear.EquipItem(item); } }
public void AddOrRemoveClothes(string nakedSlug, string clothesType, string clothesSlug, int equippedItemsIndex) { if (equipmentScript.equippedItems[equippedItemsIndex].Slug == nakedSlug) { changeGearScript.EquipItem(clothesType, clothesSlug); } else if (equipmentScript.equippedItems[equippedItemsIndex].Slug == clothesSlug) { changeGearScript.UnequipItem(clothesType, clothesSlug); } }