public MoveConsideringOccupatedController( IOccupatedPossitionsMap occupatedPossitionsMap, IUnitGameObjectController unitGameObjectController, IPathGeneratorController pathGeneratorController, IMoveStepByStepController moveStepByStepController ) { _occupatedPossitionsMap = occupatedPossitionsMap; _moveStepByStepController = moveStepByStepController; _unitGameObjectController = unitGameObjectController; _pathGeneratorController = pathGeneratorController; SubscribeOnEvent(); }
public BaseActionController( IMoveStepByStepController moveStepByStepController, IApplyDamageController applyDamageController, IUnitGameObjectController unitGameObjectController, MoveConsideringOccupatedController moveConsideringOccupatedController, IPathGeneratorController pathGeneratorController) { _moveStepByStepController = moveStepByStepController; _unitGameObjectController = unitGameObjectController; _applyDamageController = applyDamageController; _pathGeneratorController = pathGeneratorController; _moveConsideringOccupatedController = moveConsideringOccupatedController; _pathGeneratorController.NoWayToDestination += NoWayToDestinationHandler; _moveStepByStepController.NoWayToDestination += NoWayToDestinationHandler; }