public void ShootFirework() { FireworksProjectile projectile = instance.GetProjectile(); if (projectile != null) { projectile.Shoot(base.transform.position, 2f * Vector3.up + Random.insideUnitSphere); } }
public void Shoot() { FireworksProjectile projectile = Fireworks.instance.GetProjectile(); if (projectile != null) { projectile.Shoot(muzzle); cooldown = Time.time + 1f; } }