void Start() { straightBullet = GetComponent <StraightBullet>(); radicalBullet = GetComponent <RadicalBullet>(); alienBossHealthBar = GetComponent <AlienBossHealthBar>(); StartCoroutine(Shoot()); // radicalBullet.SpawnProjectile(50, 7f); }
public override void Fire() { GameObject curBullet = Instantiate(Bullet, FirePoint.position, FirePoint.rotation); StraightBullet straightBullet = curBullet.GetComponent <StraightBullet>(); straightBullet.Account = this.Account; straightBullet.Speed = this.Speed; straightBullet.Damage = this.Damage; }
void Start() { straightBullet = GetComponent <StraightBullet>(); radicalBullet = GetComponent <RadicalBullet>(); spiralBullet = GetComponent <SpiralBullet>(); spiralMultiBullet = GetComponent <SpiralMultiBullet>(); skeletonBossHealthBar = GetComponent <SkeletonBossHealthBar>(); // radicalBullet.SpawnProjectile(50, 7f);*/ }