private void NewStage() { int speedDifficulty = stage / 10; spawnSpeed = defaultSpawnSpeed - ((stage % 10) * 0.1f); spawnSpeed -= speedDifficulty * 0.2f; if (speedDifficulty > 2) { speedDifficulty = 2; } difficulty = speedDifficulty; stageText.text = "" + (stage); globalObj.ChangeMusicSpeed(stage % 10); }