private Vector3 GetValues(float time, bool keyReference)
{
if (this.quaternionX == null)
{
Debug.LogError("X curve is null!");
}
if (this.quaternionY == null)
{
Debug.LogError("Y curve is null!");
}
if (this.quaternionZ == null)
{
Debug.LogError("Z curve is null!");
}
if (this.quaternionW == null)
{
Debug.LogError("W curve is null!");
}
Quaternion q = this.EvaluateQuaternionCurvesDirectly(time);
if (keyReference)
{
this.refEuler = this.EvaluateEulerCurvesDirectly(time);
}
this.refEuler = QuaternionCurveTangentCalculation.GetEulerFromQuaternion(q, this.refEuler);
return this.refEuler;
}