fixed SelectedItem when no item
This commit is contained in:
parent
8e64a009f5
commit
93809f5052
3 changed files with 24 additions and 6 deletions
|
|
@ -51,6 +51,12 @@ public class PlayerController : MonoBehaviour {
|
|||
}
|
||||
}
|
||||
|
||||
public void DeselectItem()
|
||||
{
|
||||
_selectedItem = null;
|
||||
Cursor.SetCursor(null, Vector2.zero, CursorMode.Auto);
|
||||
}
|
||||
|
||||
public UsableItem GetSelectedItem() {
|
||||
return _selectedItem;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue