public static void IncreaseScore() { ++instance.score; if (instance.score > 5) { instance.bpm += 1; } if (instance.score > 10) { instance.bpm += 1; } if (instance.score > 20) { instance.bpm += 3; } if (instance.score > 30) { instance.bpm += 5; } if (instance.bpm > 160) { instance.bpm = 160; } instance.hideThreshold = (instance.score + 1) / 5; instance.ScoreUpdate(); GlobalSingleton.Heal(); }