Esempio n. 1
0
 internal override void AddCurveData(AnimationClipCurveData curveData)
 {
     base.AddCurveData(curveData);
     if (curveData.propertyName.StartsWith("m_LocalPosition"))
     {
         if (position == null)
         {
             position = new Vector3Sampler(null, null);
         }
         position.AddCurveData(curveData);
         return;
     }
     if (curveData.propertyName.StartsWith("m_LocalRotation"))
     {
         if (rotation == null)
         {
             rotation = new QuaternionSampler(null, null);
         }
         rotation.AddCurveData(curveData);
         return;
     }
     if (curveData.propertyName.StartsWith("m_LocalScale"))
     {
         if (scale == null)
         {
             scale = new Vector3Sampler(null, null);
         }
         scale.AddCurveData(curveData);
     }
 }
Esempio n. 2
0
 internal override void AddCurveData(AnimationClipCurveData curveData)
 {
     base.AddCurveData(curveData);
     if (curveData.propertyName.StartsWith("m_LocalPosition"))
     {
         if (position == null)
         {
             position = new Vector3Sampler(null, null);
         }
         position.AddCurveData(curveData);
         return;
     }
     if (curveData.propertyName.StartsWith("m_LocalRotation"))
     {
         if (rotation == null)
         {
             rotation = new QuaternionSampler(null, null);
         }
         rotation.AddCurveData(curveData);
         return;
     }
     if (curveData.propertyName.StartsWith("m_LocalScale"))
     {
         if (scale == null)
         {
             scale = new Vector3Sampler(null, null);
         }
         scale.AddCurveData(curveData);
     }
 }