public void IncreaseScore(int amount) { score += amount; UIManager.Instance.scoreText.text = score.ToString(); // Level Progression if (levelSpeed == 1 && score >= 100) { levelSpeed = 2; UIManager.Instance.speedText.text = levelSpeed.ToString(); enemySpawner.ChangeTiming(.8f, 1.6f); } else if (levelSpeed == 2 && score >= 200) { enemySpawner.AddEnemyToSpawnList(enemyToAdd); levelSpeed = 3; UIManager.Instance.speedText.text = levelSpeed.ToString(); enemySpawner.ChangeTiming(.8f, 1.4f); } else if (levelSpeed == 3 && score >= 300) { levelSpeed = 4; UIManager.Instance.speedText.text = levelSpeed.ToString(); enemySpawner.ChangeTiming(.6f, 1.2f); } else if (levelSpeed == 4 && score >= 450) { levelSpeed = 5; UIManager.Instance.speedText.text = levelSpeed.ToString(); enemySpawner.ChangeTiming(.6f, 1f); } else if (levelSpeed == 5 && score >= 600) { levelSpeed = 6; UIManager.Instance.speedText.text = levelSpeed.ToString(); enemySpawner.ChangeTiming(.5f, .8f); } else if (levelSpeed == 6 && score >= 700) { levelSpeed = 7; UIManager.Instance.speedText.text = levelSpeed.ToString(); enemySpawner.ChangeTiming(.5f, .6f); } else if (levelSpeed == 7 && score >= 900) { levelSpeed = 8; UIManager.Instance.speedText.text = levelSpeed.ToString(); enemySpawner.ChangeTiming(.35f, .45f); } }