using Microsoft.Xna.Framework.Input; using System; using System.Collections.Generic; using System.Text; namespace Sprint3_actual.Commands { class InventoryMoveLeftCommand : ICommand { private Game1 game1; public InventoryMoveLeftCommand(Game1 game) { this.game1 = game; } public void Execute() { KeyboardState key = Keyboard.GetState(); if (Inventory.Instance.key != key) { Inventory.Instance.setSlot(0, -1); Inventory.Instance.key = key; } } } }