voigas
This commit is contained in:
parent
66eb5af0bb
commit
97b6ce7497
7 changed files with 3 additions and 56 deletions
|
|
@ -38,7 +38,7 @@ public class PlayerController : MonoBehaviour {
|
|||
public void SetSelectedItem(UsableItem item) {
|
||||
if(_inventory.items.ContainsKey(item)) {
|
||||
selectedItem = item;
|
||||
Cursor.SetCursor(item.defaultSprite.texture, Vector2.zero, CursorMode.Auto);
|
||||
Cursor.SetCursor(item.selectedSprite.texture, Vector2.zero, CursorMode.Auto);
|
||||
} else {
|
||||
Debug.Log("An item requested to select isn't in the inventory" + item);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue