Example #1
0
        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);
        }
Example #2
0
        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;
        }
Example #3
0
 public SpaceshipFactory(SpaceshipData spaceshipData)
 {
     _spaceshipData = spaceshipData;
 }