Beispiel #1
0
    void Start()
    {
        changeGear = gladiator.GetComponentInChildren <ChangeGear>();

        foreach (string item in defaultItems)
        {
            changeGear.EquipItem(item);
        }
    }
Beispiel #2
0
 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);
     }
 }