Beispiel #1
0
 private void updateDisplay()
 {
     if (this.SlotType != WeaponData.Slot.Empty)
     {
         ProgressData.SmartSlot slot = this.ShopHandler.GetSmartSlots()[(int)this.SlotType];
         _cost = WeaponData.GetUpgradeTotalCost(this.SlotType, slot.Level);
         this.CostText.text = this.CostString.Replace("<cost>", "" + _cost);
         if (slot.Level < WeaponData.GetMaxSlotsByType()[this.SlotType])
         {
             this.LevelText.text = this.LevelString.Replace("<level>", "" + slot.Level);
         }
         else
         {
             this.LevelText.text = this.MaxLevelString;
         }
     }
     else
     {
         _cost = HEALTH_COST;
         this.CostText.text = this.CostString.Replace("<cost>", "" + _cost);
     }
 }
Beispiel #2
0
 private void updateSlotLevelParadigm(ProgressData.SlotWrapper[] slots)
 {
     ProgressData.SmartSlot smartSlot = ProgressData.GetSmartSlot(slots, this.SlotId);
     updateSlotHelper(smartSlot.SlotType, smartSlot.Ammo, smartSlot.Level);
 }