public TileGridViewConstructor(FightState fightState, IFactory <State.TileState, TileView> tileFactory, ITileViewPlacementStrategy placementStrategy, ITileViewContainer tileViewContainer) { _fightState = fightState; _tileFactory = tileFactory; _placementStrategy = placementStrategy; _tileViewContainer = tileViewContainer; CreateTileGridView(_fightState); }
public UnitMovementComponent(Transform transform, ITileViewContainer tileViewContainer) { _transform = transform; _tileViewContainer = tileViewContainer; }
public void Init(UnitState unit, ITileViewContainer tileViewContainer) { State = unit; RotationComponent = new UnitRotationComponent(transform); MovementComponent = new UnitMovementComponent(transform, tileViewContainer); }