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

namespace Sprint3_actual.Commands
{
    class MuteCommand : ICommand
    {
        private Game1 game1;

        public MuteCommand(Game1 game)
        {
            this.game1 = game;
        }

        public void Execute()
        { 
            SoundEngine.Instance.toggleMute();
        }
    }
}