コード例 #1
0
    public void ShootPrep()
    {
        ShootPrepTime += Time.deltaTime;
        if (ShootPrepTime > 0.1f)
        {
            if (!GunPrep.IsPlaying())
            {
                GunPrep.Play();
            }

            GunPrep.EmissionRate = ShootPrepTime * 1000;
            if (GunPrep.EmissionRate > 10000)
            {
                GunPrep.EmissionRate = 10000;
            }
        }
    }