Money and Day UI finished
This commit is contained in:
parent
9e082537d8
commit
52fa93fc36
2 changed files with 17 additions and 16 deletions
|
|
@ -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 + "µ";
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue