Esempio n. 1
0
        public override void Read(EndianStream stream)
        {
            base.Read(stream);

            if (IsReadPrefab)
            {
                PrefabParentObject.Read(stream);
                PrefabInternal.Read(stream);
            }
        }
        public override void Read(AssetStream stream)
        {
            base.Read(stream);

            if (IsReadPrefab(stream.Flags))
            {
                PrefabParentObject.Read(stream);
                PrefabInternal.Read(stream);
            }
        }
Esempio n. 3
0
        public override void Read(AssetReader reader)
        {
            base.Read(reader);

            if (IsReadPrefabParentObject(reader.Flags))
            {
                PrefabParentObject.Read(reader);
                PrefabInternal.Read(reader);
            }
        }
Esempio n. 4
0
        public override void Read(AssetReader reader)
        {
            base.Read(reader);

#if UNIVERSAL
            if (IsReadPrefabParentObject(reader.Flags))
            {
                PrefabParentObject.Read(reader);
                PrefabInternal.Read(reader);
            }
            if (IsReadPrefabAsset(reader.Version, reader.Flags))
            {
                PrefabAsset.Read(reader);
            }
#endif
        }