예제 #1
0
        private void LoadWithoutBase(Stream stream)
        {
            BinaryReader reader = new BinaryReader(stream);

            int numPositions = reader.ReadInt32();

            m_Positions = new List <Vector3>(numPositions);
            for (int i = 0; i < numPositions; i++)
            {
                m_Positions.Add(reader.ReadVector3());
            }

            m_Parameters    = new LineParameters(stream, file.VersionNumber);
            m_UseWorldSpace = reader.ReadBoolean();
        }
예제 #2
0
        private void LoadWithoutBase(Stream stream)
        {
            BinaryReader reader = new BinaryReader(stream);

            m_Time = reader.ReadSingle();
            if (file.VersionNumber < AssetCabinet.VERSION_5_5_0)
            {
                m_StartWidth = reader.ReadSingle();
                m_EndWidth   = reader.ReadSingle();
                m_Colors     = new Gradient(stream);
            }
            else
            {
                m_Parameters = new LineParameters(stream, file.VersionNumber);
            }
            m_MinVertexDistance = reader.ReadSingle();
            m_Autodestruct      = reader.ReadBoolean();
        }