public override void Start() { rigidbody2d = GetComponent <Rigidbody2D>(); fireData = new FireBuilder(bulletPrefab, Field); fireData.From(transform); fireData.WithSpeed(0); fireData.WithController(new AutoDeactivateController(2.0f)); base.Start(); }
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); }
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()); }