示例#1
0
    public void ShootFirework()
    {
        FireworksProjectile projectile = instance.GetProjectile();

        if (projectile != null)
        {
            projectile.Shoot(base.transform.position, 2f * Vector3.up + Random.insideUnitSphere);
        }
    }
示例#2
0
    public void Shoot()
    {
        FireworksProjectile projectile = Fireworks.instance.GetProjectile();

        if (projectile != null)
        {
            projectile.Shoot(muzzle);
            cooldown = Time.time + 1f;
        }
    }