Ejemplo n.º 1
0
 public void Launch()
 {
     if (!canShoot)
     {
         return;
     }
     if (Time.time > lastShootTime + shootDelay)
     {
         lastShootTime = Time.time;
         this.Send(new LauncherFiringEvent(this));
         ProjectileFactory.CreateProjectile(template, transform.position, transform.rotation.eulerAngles.z);
     }
 }
Ejemplo n.º 2
0
 public void Kill()
 {
     ProjectileFactory.BuryProjectile(this);
 }