Ejemplo n.º 1
0
    public void IncreaseSpawnRate()
    {
        if (objectSpawner != null)
        {
            objectSpawner.IncreaseSpawnRate();
        }

        if (musicPlayer != null && fxTrackPlayer != null)
        {
            musicPlayer.pitch   = musicPlayer.pitch * 1.02f;
            fxTrackPlayer.pitch = fxTrackPlayer.pitch * 1.02f;
        }
    }