Пример #1
0
 public override AnimatorTimeline.JSONInit getJSONInit()
 {
     if (!obj || keys.Count <= 0)
     {
         return(null);
     }
     AnimatorTimeline.JSONInit init = new AnimatorTimeline.JSONInit();
     init.type = "rotation";
     init.go   = obj.gameObject.name;
     AnimatorTimeline.JSONQuaternion q = new AnimatorTimeline.JSONQuaternion();
     q.setValue(getInitialRotation());
     init.rotation = q;
     return(init);
 }
Пример #2
0
 public override AnimatorTimeline.JSONInit getJSONInit()
 {
     if(!_obj || keys.Count <= 0) return null;
     AnimatorTimeline.JSONInit init = new AnimatorTimeline.JSONInit();
     init.type = "rotation";
     init.go = _obj.gameObject.name;
     AnimatorTimeline.JSONQuaternion q = new AnimatorTimeline.JSONQuaternion();
     q.setValue(getInitialRotation());
     init.rotation = q;
     return init;
 }
Пример #3
0
 public override AnimatorTimeline.JSONInit getJSONInit(AMITarget target)
 {
     if(!_obj || keys.Count <= 0) return null;
     AnimatorTimeline.JSONInit init = new AnimatorTimeline.JSONInit();
     init.type = "rotation";
     init.go = _obj.gameObject.name;
     AnimatorTimeline.JSONQuaternion q = new AnimatorTimeline.JSONQuaternion();
     Quaternion quat = getInitialRotation();
     q.setValue(new Vector4(quat.x, quat.y, quat.z, quat.w));
     init.rotation = q;
     return init;
 }