public static App.Protobuf.Quaternion UnityToProtobufQuaternion(UnityEngine.Quaternion source) { App.Protobuf.Quaternion dest = App.Protobuf.Quaternion.Allocate(); dest.X = source.x; dest.Y = source.y; dest.Z = source.z; dest.W = source.w; return(dest); }
public static UnityEngine.Quaternion ProtobufToUnityQuaternion(App.Protobuf.Quaternion source) { return(new UnityEngine.Quaternion(source.X, source.Y, source.Z, source.W)); }