Esempio n. 1
0
 public SelectionSystem(
     IRtsInput rtsInput,
     Faction faction)
 {
     rtsInput.SelectOnUnit += OnSelectUnit;
     this.faction           = faction;
 }
Esempio n. 2
0
        public CommandManager(
            Faction faction,
            IRtsInput rtsInput,
            ICommandExecutor commandExecutor,
            SelectionSystem selectionSystem)
        {
            this.faction         = faction;
            this.commandExecutor = commandExecutor;
            this.selectionSystem = selectionSystem;

            rtsInput.ActionOnUnit += OnActionOnUnit;
        }
Esempio n. 3
0
 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);
 }