Sprites working for mouse
This commit is contained in:
parent
2324668dda
commit
f4e44714c1
6 changed files with 61 additions and 11 deletions
|
|
@ -40,7 +40,7 @@ public class PlayerController : MonoBehaviour {
|
|||
public void SetSelectedItem(UsableItem item) {
|
||||
if(_inventory.items.ContainsKey(item)) {
|
||||
_selectedItem = item;
|
||||
Cursor.SetCursor(item.selectedSprite.texture, Vector2.zero, CursorMode.Auto);
|
||||
Cursor.SetCursor(item.defaultSprite.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