示例#1
0
 public SerializableVector3(SerializableVector3 copyFrom)
 {
     x = copyFrom.x;
     y = copyFrom.y;
     z = copyFrom.z;
 }
 public SerializableTransform(Transform transform)
 {
     this.position   = new SerializableVector3(transform.position);
     this.rotation   = new SerializableQuaternion(transform.rotation);
     this.localScale = new SerializableVector3(transform.localScale);
 }
 public SerializableTransform(Vector3 position, Quaternion rotation, Vector3 localScale)
 {
     this.position   = new SerializableVector3(position);
     this.rotation   = new SerializableQuaternion(rotation);
     this.localScale = new SerializableVector3(localScale);
 }
 public SerializableTransform()
 {
     position   = new SerializableVector3();
     rotation   = new SerializableQuaternion();
     localScale = new SerializableVector3();
 }