public override void Start()
 {
     fireData = new FireBuilder(bulletPrefab, Field);
     fireData.From(transform);
     fireData.Towards(Player.transform);
     fireData.WithSpeed(6);
     fireData.WithModifier(new CircularBurstModifier(100, 5, 0, 0));
 }
 public override void Start()
 {
     fireData = new FireBuilder(bulletPrefab, Field);
     fireData.From(transform);
     fireData.Towards(Player.transform);
     fireData.WithSpeed(6 + 2 * Difficulty);
     fireData.WithModifier(new RandomizeAngleModifier(360));
 }
Exemple #3
0
    public override void Start()
    {
        rigidbody2d = GetComponent <Rigidbody2D>();

        fireData = new FireBuilder(bulletPrefab, Field);
        fireData.From(transform);
        fireData.WithSpeed(10 + Difficulty);
        fireData.WithModifier(new CircularBurstModifier(100, 5, 0, 0));

        base.Start();
    }
Exemple #4
0
    public override void Start()
    {
        fireData = new FireBuilder(bulletPrefab, Field);
        fireData.From(transform);
        fireData.WithSpeed(3);
        fireData.WithAngularSpeed(45);
        fireData.WithModifier(new CircularBurstModifier(340, new DynamicInt(10, 20), 0, 0));
        fireData.WithController(new AccelerationController(3));

        GetComponent <Rigidbody2D>().velocity = new Vector2(0, -2);
        SetRotation(0);
    }
Exemple #5
0
    public override void Start()
    {
        fireDataBullet = new FireBuilder(bulletPrefab, Field);
        fireDataBullet.From(transform);
        fireDataBullet.WithSpeed(12);
        fireDataBullet.WithModifier(new CircularBurstModifier(45, 7, 0, 0));
        fireDataBullet.WithController(new AccelerationController(3));

        fireDataLaser = new FireBuilder(laserPrefab, Field);
        fireDataLaser.From(transform);
        fireDataLaser.WithSpeed(0);
        fireDataLaser.WithRotation(transform);
        fireDataLaser.WithController(new AutoDeactivateController(0.25f));

        StartCoroutine(Attack());
    }