示例#1
0
        public void Read(AssetReader reader)
        {
            RootX.Read(reader);
            if (IsVector3(reader.Version))
            {
                LookAtPosition.Read3(reader);
            }
            else
            {
                LookAtPosition.Read(reader);
            }
            LookAtWeight.Read(reader);
            m_goalArray = reader.ReadAssetArray <HumanGoal>();
            LeftHandPose.Read(reader);
            RightHandPose.Read(reader);
            m_doFArray = reader.ReadSingleArray();

            if (IsReadTArray(reader.Version))
            {
                if (IsVector3(reader.Version))
                {
                    m_TDoFArray = reader.ReadVector3Array();
                }
                else
                {
                    m_TDoFArray = reader.ReadAssetArray <Vector4f>();
                }
            }
        }
示例#2
0
        public void Read(AssetStream stream)
        {
            RootX.Read(stream);
            if (IsVector3(stream.Version))
            {
                LookAtPosition.Read3(stream);
            }
            else
            {
                LookAtPosition.Read(stream);
            }
            LookAtWeight.Read(stream);
            m_goalArray = stream.ReadArray <HumanGoal>();
            LeftHandPose.Read(stream);
            RightHandPose.Read(stream);
            m_doFArray = stream.ReadSingleArray();

            if (IsReadTArray(stream.Version))
            {
                if (IsVector3(stream.Version))
                {
                    m_TDoFArray = stream.ReadVector3Array();
                }
                else
                {
                    m_TDoFArray = stream.ReadArray <Vector4f>();
                }
            }
        }