added Player GameObject, updated GrassTile.Clicked()

This commit is contained in:
j-weissen 2022-05-18 23:59:49 +02:00
parent 433158e658
commit 4612938b54
5 changed files with 76 additions and 5 deletions

View file

@ -7,7 +7,9 @@ public class PlayerController : MonoBehaviour {
private Dictionary<Item, int> inventory;
private int money;
private UsableItem selectedItem;
public UsableItem SelectedItem => selectedItem;
private static PlayerController instance;
public int startMoney = 100;
@ -39,4 +41,6 @@ public class PlayerController : MonoBehaviour {
Debug.Log("An item requested to select isn't in the inventory" + item);
}
}
}