void Start() { config = Functions.DeserializeFromResourcesXML <LevelConfig>("Configs/Levels/level" + GameManager.instance.levelID); //Functions.SerializeToXML(config, "C:/level0.xml"); ParseBlocks(); ParsePickups(); maximumLevelWidth = blockMatrix[0].Count * blockSize.x; maximumEnemyDistanceBehindPlayer = 5; //blockSize.z / 2; maximumDistanceBehindPlayer = blockSize.z; blockSpawnTreshhold = blockSize.z * 1.5f; bossSpawnTreshhold = blockSize.z; guiScript.SetNextStageEnabled(true, (GameManager.instance.levelID == 0)); SpawnEnemies(new Vector3(0, 0, 12)); }