public void IncreaseDifficulty() { rate = rate * .99f; CancelInvoke(); InvokeRepeating("SpawnProjectile", 0, rate); sound.IncreasePitch(); }