public AttackInitialization(Transform transform, SpaceshipData spaceshipData, BulletData bulletData) { var barrel = new ShotPoint(transform, spaceshipData); _shotPoint = barrel.GetShotPoint(); var bulletFactory = new BulletFactory(bulletData); _inputAttackController = new InputAttackController(bulletFactory, bulletData, bulletData); }
public MovementInitialization(Transform spaceship, SpaceshipData data, Vector3 cameraPosition) { var moveTransform = new AccelerationMove(spaceship, data, data); var rotation = new RotationSpaceship(spaceship); var movement = new SpaceshipMovement(moveTransform, rotation, data); _inputMoveController = new InputMoveController(movement); _cameraPosition = cameraPosition; }
public SpaceshipFactory(SpaceshipData spaceshipData) { _spaceshipData = spaceshipData; }