Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 public static UnityEngine.Quaternion ProtobufToUnityQuaternion(App.Protobuf.Quaternion source)
 {
     return(new UnityEngine.Quaternion(source.X, source.Y, source.Z, source.W));
 }