Removed currency ammount
This commit is contained in:
@@ -27,7 +27,7 @@ namespace Fruitomation.UI
|
||||
[Header("Settings")]
|
||||
[SerializeField] private BasicUpgrade Upgrade;
|
||||
[SerializeField] private bool DrawDefaultLines;
|
||||
[SerializeField] private CurrencyAmount Cost;
|
||||
[SerializeField] private double Cost;
|
||||
[SerializeField] private bool BigText;
|
||||
|
||||
[Header("References")]
|
||||
@@ -162,7 +162,7 @@ namespace Fruitomation.UI
|
||||
{
|
||||
UpgradeState.Hidden => "???",
|
||||
UpgradeState.Viewable => $"{formatted}",
|
||||
UpgradeState.Unlockable => $"{formatted}\n{Cost.AsString()}",
|
||||
UpgradeState.Unlockable => $"{formatted}\n{Cost:F1}",
|
||||
UpgradeState.Unlocked => $"{formatted}\nUnlocked",
|
||||
var _ => throw new ArgumentOutOfRangeException()
|
||||
};
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace Fruitomation.UI
|
||||
{
|
||||
[Header("Settings")]
|
||||
[SerializeField] private BuildingUnlock Building;
|
||||
[SerializeField] private CurrencyAmount Cost;
|
||||
[SerializeField] private double Cost;
|
||||
|
||||
[Header("References")]
|
||||
[SerializeField] private Button AttachedButton;
|
||||
@@ -30,7 +30,7 @@ namespace Fruitomation.UI
|
||||
|
||||
AttachedText.text = unlocked
|
||||
? $"{formatted}\nUnlocked"
|
||||
: $"{formatted}\n{Cost.AsString()}";
|
||||
: $"{formatted}\n{Cost:F1}";
|
||||
|
||||
AttachedButton.interactable = !unlocked;
|
||||
}
|
||||
|
||||
@@ -56,7 +56,7 @@ namespace Fruitomation.UI
|
||||
|
||||
private void Update()
|
||||
{
|
||||
MoneyText.text = $"Current Money: {MoneyController.Current.AsString()}";
|
||||
MoneyText.text = $"Current Money: {MoneyController.Current:F1}";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user