public void IncreasePoint(int points) { Points += points; ScoreText.text = Points.ToString(); if (Points % 2 == 0) { Level++; CubeSpawner.DecreaseSpawnRate(); } if (Points % 5 == 0) { CubeSpawner.AddColor(); foreach (Spawner s in BoxSpawners) { s.AddColor(); } } }