public static void AddProgress(float amount) { potionProgress += amount; if (potionProgress >= 100 && posX >= TileGenerator.endLength) { DayTime.Win(); } }