using System; using System.Collections.Generic; using System.Text; using System; namespace Sprint2_actual.Commands { public class PreviousBlockCommand : ICommand { private Game1 game1; public PreviousBlockCommand(Game1 game) //Could change this to pass only the Block class when created { this.game1 = game; } public void Execute() { //Go to the previous Block that is created from factory for Blocks game1.Block.PrevSprite(); } } }