private void RespondToInput() { if (Input.GetButtonDown("Inventory")) { inventory.DisplayInventory(); } if (inventory.inventoryActive) { SetIdleSprite(); InventoryControls(); } else { MovePlayer(); } }