public SelectionSystem( IRtsInput rtsInput, Faction faction) { rtsInput.SelectOnUnit += OnSelectUnit; this.faction = faction; }
public CommandManager( Faction faction, IRtsInput rtsInput, ICommandExecutor commandExecutor, SelectionSystem selectionSystem) { this.faction = faction; this.commandExecutor = commandExecutor; this.selectionSystem = selectionSystem; rtsInput.ActionOnUnit += OnActionOnUnit; }
private void Awake() { unityInputWrapper = new UnityInputWrapper(playerInput); input = new RtsInput(unityInputWrapper, rectangleRenderer); selectionSystem = new SelectionSystem(input, playerFaction); commandExecutor = new CommandExecutor(); commandManager = new CommandManager( playerFaction, input, commandExecutor, selectionSystem); }