Пример #1
0
 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;
     }
 }
Пример #2
0
 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;
     }
 }
Пример #3
0
 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;
     }
 }