Money and Day UI finished

This commit is contained in:
s-prechtl 2022-06-02 14:58:47 +02:00
parent 9e082537d8
commit 52fa93fc36
2 changed files with 17 additions and 16 deletions

View file

@ -34,6 +34,7 @@ public class PlayerController : MonoBehaviour {
private void Start() {
_money = startMoney;
_inventory = Inventory.instance;
moneyTextMeshProUGUI.text = _money + "µ";
}
public void SetSelectedItem(UsableItem item) {
@ -51,6 +52,6 @@ public class PlayerController : MonoBehaviour {
public void ChangeMoney(int amount) {
_money += amount;
moneyTextMeshProUGUI.text = amount + "µ";
moneyTextMeshProUGUI.text = _money + "µ";
}
}