Beispiel #1
0
 void updateEquipmentList()
 {
     Head.disable();
     LArm.disable();
     RArm.disable();
     Chest.disable();
     Leg.disable();
     Feet.disable();
     Necklace.disable();
     Ring.disable();
     Back.disable();
     //public Button Head, LArm, RArm, Chest,
     //Leg, Feet, Necklace, Ring, Back;
     foreach (Equipment equip in actor.getEquipment())
     {
         //Debug.Log(equip.name + " BEING ADDED");
         if (equip.getEquipmentPosition().Equals("Head"))
         {
             //Debug.Log ("HAT");
             Head.setItem(equip);
         }
         if (equip.getEquipmentPosition().Equals("Necklace"))
         {
             Necklace.setItem(equip);
         }
         if (equip.getEquipmentPosition().Equals("LArm"))
         {
             LArm.setItem(equip);
         }
         if (equip.getEquipmentPosition().Equals("RArm"))
         {
             RArm.setItem(equip);
         }
         if (equip.getEquipmentPosition().Equals("Chest"))
         {
             Chest.setItem(equip);
         }
         if (equip.getEquipmentPosition().Equals("Leg"))
         {
             Leg.setItem(equip);
         }
         if (equip.getEquipmentPosition().Equals("Feet"))
         {
             Feet.setItem(equip);
         }
         if (equip.getEquipmentPosition().Equals("Ring"))
         {
             Ring.setItem(equip);
         }
         if (equip.getEquipmentPosition().Equals("Back"))
         {
             Back.setItem(equip);
         }
     }
     Head.updateIcon();
     Necklace.updateIcon();
     LArm.updateIcon();
     RArm.updateIcon();
     Chest.updateIcon();
     Leg.updateIcon();
     Feet.updateIcon();
     Ring.updateIcon();
     Back.updateIcon();
 }