public void StartCurrentLevel() { if (!InventoryManager.main.PurchasesHaveBeenMade()) { return; } InventoryManager.main.HideShop(); if (config == null) { config = ConfigManager.main.GetConfig("GameConfig") as GameConfig; config.CurrentLevel = config.FirstLevel; } if (worldParent != null) { Destroy(worldParent.gameObject); } SoundManager.main.FadeMenuToGame(); worldParent = Instantiate(config.ContainerPrefab); worldParent.name = config.CurrentLevel.Name; tiledMap.Initialize(); UIInventoryManager.main.UseCrosshair(); InventoryManager.main.ProcessPurchasedItems(); InventoryManager.main.UpdateHealth(); InventoryManager.main.SelectAutomatically(); inGame = true; }