示例#1
0
        /// <summary>
        ///     主角移动
        /// </summary>
        /// <param name="point"></param>
        public void WalkTo(Point point)
        {
            _paths.Clear();
            Logger.Debug("Begin FindPath");
            var paths = _pathHelper.FindPath(_currentScene.MapId, _currentPlayer.At, point);

            Logger.Debug("End FindPath");
            foreach (var path in paths)
            {
                _paths.Enqueue(path);
            }
        }