Ejemplo n.º 1
0
        public override void Read(AssetReader reader)
        {
            base.Read(reader);

            NavMeshTiles = reader.ReadAssetArray <NavMeshTileData>();
            if (HasNavMeshParams(reader.Version))
            {
                NavMeshParams.Read(reader);
            }
            else
            {
                NavMeshBuildSettings.Read(reader);
            }
            Heightmaps   = reader.ReadAssetArray <HeightmapData>();
            HeightMeshes = reader.ReadAssetArray <HeightMeshData>();
            OffMeshLinks = reader.ReadAssetArray <AutoOffMeshLinkData>();
            if (HasSourceBounds(reader.Version))
            {
                SourceBounds.Read(reader);
                Rotation.Read(reader);
                Position.Read(reader);
                AgentTypeID = reader.ReadInt32();
            }
        }
Ejemplo n.º 2
0
        public override void Read(AssetStream stream)
        {
            base.Read(stream);

            m_navMeshTiles = stream.ReadArray <NavMeshTileData>();
            if (IsReadNavMeshParams(stream.Version))
            {
                NavMeshParams.Read(stream);
            }
            else
            {
                NavMeshBuildSettings.Read(stream);
            }
            m_heightmaps   = stream.ReadArray <HeightmapData>();
            m_heightMeshes = stream.ReadArray <HeightMeshData>();
            m_offMeshLinks = stream.ReadArray <AutoOffMeshLinkData>();
            if (IsReadSourceBounds(stream.Version))
            {
                SourceBounds.Read(stream);
                Rotation.Read(stream);
                Position.Read(stream);
                AgentTypeID = stream.ReadInt32();
            }
        }