public override void Init() { time = 0; playerModel.Init(); collectModel.Init(); collectModel.Player = playerModel; historyModel.Init(); youWinModel.Init(); //Skybox LoadSkyBox(); //LoadSkyBoxUndersea(); //Heightmap currentHeightmap = MediaDir + "\\Level1\\Heigthmap\\" + "hm_level1.jpg"; var currentTexture = MediaDir + "\\Level1\\Textures\\" + "level1.PNG"; currentScaleXZ = 150f; currentScaleY = 2f; underseaTerrain = new TgcSimpleTerrain(); underseaTerrain.loadHeightmap(currentHeightmap, currentScaleXZ, currentScaleY, new TGCVector3(0, 0, 0)); underseaTerrain.loadTexture(currentTexture); underseaTerrain.AlphaBlendEnable = true; bulletManager = new BulletSharpManager(initialPosition, Input, Camera, playerModel); bulletManager.Init(underseaTerrain); //Surface LoadSurface(); //Meshes LoadMeshes(); //Collectables LoadCollectableMeshes(); //HUD hudModel.Init(); //Shaders LoadShaders(); fogEffect = TGCShaders.Instance.LoadEffect(ShadersDir + "TgcFogShader.fx"); //OnlyForDebug(); music = new TgcMp3Player(); music.FileName = MediaDir + "\\Sounds\\rain.mp3"; music.play(true); }