예제 #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);
     }
 }
예제 #2
0
 public void Kill()
 {
     ProjectileFactory.BuryProjectile(this);
 }