// Update is called once per frame void Update() { if (PooProgress != null) { if (PooProgress.PooPercentageComplete() > 1f) // 100% //1.3f) { if (player != null) { player.ShitPants(); } //LoadLosingScene(); } } if (LevelProgress != null && gameDirection == Direction.RIGHT) { if (LevelProgress.ProgressPercentage() >= 1.0f) { LoadStoreScene(); } } if (LevelProgress != null && gameDirection == Direction.LEFT) { if (LevelProgress.ProgressPercentage() >= 1.0f) { LoadWinScene(); } } }