using System; using System.Collections.Generic; using System.Text; namespace Sprint3_actual.Commands { class LinkMoveUpCommand:ICommand { private Game1 game1; public LinkMoveUpCommand(Game1 game) { this.game1 = game; } public void Execute() { if (!Inventory.Instance.inInventory()) game1.Player.MoveUp(); } } }