public void FollowPlayer(HPlayer pPlayer)
 {
     _player = pPlayer;
     IsPlayerFollow = true;
 }
        public void StartNewGame(String pString)
        {
            if(_level != null)
                _level.ResetLevel();

            XmlSerializer xml = new XmlSerializer(typeof(HLevel));
            
            TextReader reader = new StreamReader(pString);
            _level = (HLevel)xml.Deserialize(reader);
            reader.Close();

            _level.ParallaxManager.Camera = _camera;
            _level.ParallaxManager.Load();
            TextureManager.Instance.SetSpriteMap(@"\Content\SpriteMap\" + _level.SpriteMapName + ".png", _level.SpriteMapName);
            GameSettings.LevelHeight = _level.Height;
            GameSettings.LevelWidth = _level.Width;
            TextureManager.Instance.LoadPlayer(_level.SpriteMapName);
            _player = new HPlayer(_level.StartPosition, "Viereck_Japan");
            _player.SwitchForm(0);
            _camera.FollowPlayer(_player);
            _isGamePaused = false;
            _isGameEnd = false;
            _level.ClearEntities();
            _level.SortEntities();
            _level.Goal = new HGoal(_level.GoalPosition);
            _player.IsJump = false;

            _timerBar = new HImageTimeBar(Vector2.Zero, "timeStar", "timeStar2", "timeStar3", _level.Time);

            NotifySwitches();
        }