public static void LoadLevel(int id) { if (world != null) { Destroy(world.hexes.gameObject); } if (id == 0 || id == 2 || id == 4) { AudioManager.playTrack1(); if (id == 2) { AudioManager.wfade = false; AudioManager.playWaterLoop(); } } else { AudioManager.playTrack2(); } level = LevelRegistery <GameLevel> .Create(id); world = level.GetMap(instance); p.hero = world.hero; p.hero.health = p.hero.maxHealth = level.playerMaxHealth; p.deck = level.GetDeck(); p.hand.Clear(); p.DrawCards(5); UIManager.SetGUI(GUIType.World); lvl_id = id; }