public void SetInfo(ShipPropsType type, int amount)
 {
     if (this.icon != null)
     {
         this.icon.SetSprite(((int) type) + string.Empty);
     }
     this.nameTM.text = Localization.Localize(type.ToString());
     this.nameTM.Commit();
     if (type != ShipPropsType.Range)
     {
         if (amount > 0)
         {
             this.amountTM.text = "+" + amount;
         }
         else
         {
             this.amountTM.text = string.Empty + amount;
         }
     }
     else
     {
         this.amountTM.text = Localization.Localize("Range" + amount);
     }
     this.amountTM.Commit();
 }
 public void SetInfo(ShipPropsType type, float amount, [Optional, DefaultParameterValue(false)] bool effected)
 {
     this.icon.SetSprite(((int) type) + string.Empty);
     this.nameTM.text = Localization.Localize(type.ToString());
     this.nameTM.Commit();
     if (type == ShipPropsType.Speed)
     {
         this.amountTM.text = amount.ToString("0.0");
     }
     else if (type == ShipPropsType.Range)
     {
         this.amountTM.text = Localization.Localize("Range" + ((int) amount));
     }
     else
     {
         this.amountTM.text = ((int) amount) + string.Empty;
     }
     if (effected)
     {
         this.amountTM.color = this.effectedColor;
     }
     this.amountTM.Commit();
 }