Example #1
0
        public void LoadCurrentData()
        {
            if (sceneNavmeshData == null)
            {
#if UNITY_EDITOR
                if (Debuger_K.doDebug)
                {
                    Debug.LogWarning("No data to load");
                }
#endif
                return;
            }

#if UNITY_EDITOR
            if (Debuger_K.doDebug)
            {
                Debug.LogWarning("Load current data");
            }
            Debuger_K.ClearChunksDebug();
#endif

            for (int i = 0; i < sceneNavmeshData.properties.Count; i++)
            {
                if (sceneNavmeshData.properties[i] == null)
                {
                    Debug.LogWarning("properties == null");
                    continue;
                }
                PathFinder.Deserialize(sceneNavmeshData.navmesh[i], sceneNavmeshData.properties[i]);
            }
        }