public override void Shoot() { if (!this.Shooting) { this.Shooting = true; GameObject clone = Instantiate(Bullet, this.transform.position, this.transform.rotation) as GameObject; BaseBullet BI = clone.GetComponent(typeof(BaseBullet)) as BaseBullet; BI.OnShoot(transform.right, this.tag); this.Shooting = false; } }
public override void Shoot() { if (!this.Shooting && time <= 0f) { this.Shooting = true; Speed = 0; GameObject clone = Instantiate(Bullet, this.transform.position, this.transform.rotation) as GameObject; BaseBullet BI = clone.GetComponent(typeof(BaseBullet)) as BaseBullet; BI.OnShoot(this.tag); this.time = 2.5f; } }
public override void Shoot() { if (overheat < .5f) { overheat += Time.deltaTime * 2; cooldown = .15f; GameObject clone = Instantiate(Bullet, this.transform.position, this.transform.rotation) as GameObject; BaseBullet BI = clone.GetComponent(typeof(BaseBullet)) as BaseBullet; BI.OnShoot(transform.right, this.tag); } if (overheat >= .5f) { cooldown = 1f; overheat = 1f; } }