public void Continue() { level++; int nextLevelPlatformCount = (int)((level * levelCollectibleMin) - (level * levelCollectibleMin) * .2); IncrementLevelRequiredTokens(); platformSpawner.SpawnPlatforms(nextLevelPlatformCount); playerObject.transform.position = platformSpawner.GetNextLevelStart(); playerObject.transform.rotation = player.GetPlayerRotation(); UpdateUI(); playerObject.SetActive(true); }