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