Esempio n. 1
0
        public static App.Protobuf.Vector3 UnityToProtobufVector3(UnityEngine.Vector3 source)
        {
            App.Protobuf.Vector3 dest = App.Protobuf.Vector3.Allocate();
            dest.X = source.x;
            dest.Y = source.y;
            dest.Z = source.z;

            return(dest);
        }
Esempio n. 2
0
 public static UnityEngine.Vector3 ProtobufToUnityVector3(App.Protobuf.Vector3 source)
 {
     return(new UnityEngine.Vector3(source.X, source.Y, source.Z));
 }