Game-Design / Sprint3_actual / Commands / LinkMoveLeftCommand.cs
LinkMoveLeftCommand.cs
Raw
using System;
using System.Collections.Generic;
using System.Text;

namespace Sprint3_actual.Commands
{
    class LinkMoveLeftCommand:ICommand
    {
        private Game1 game1;
        public LinkMoveLeftCommand(Game1 game)
        {
            this.game1 = game;
        }
        public void Execute()
        {
            if (!Inventory.Instance.inInventory()) game1.Player.MoveLeft();
        }
    }
}