Пример #1
0
        /// <summary>
        /// gets the path
        /// </summary>
        /// <returns></returns>
        private BehaviorReturnCode getCurrentPath()
        {
            s_currentPath = findPath.getPath();

            //GameMap map = (GameMap)s_GameMapMapper.get(s_Map);

            s_MapDebug = s_EcsInstance.tag_manager.get_entity_by_tag("MAP_DEBUG");
            s_Debug    = (MapDebug)s_MapDebugMapper.get(s_MapDebug);

            s_Debug.ClosedSet = findPath.getClosedSet();
            s_Debug.OpenSet   = findPath.getOpenSet();
            s_Debug.Blocking  = findPath.getBlockingSet();
            s_Debug.Path      = s_currentPath;

            return(BehaviorReturnCode.Success);
        }
Пример #2
0
 void OnEnable()
 {
     md = (MapDebug)target;
 }