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