Beispiel #1
0
            public static Vector2 ToValue(byte[] table, int index)
            {
                UnionVector2 bt = new UnionVector2();

                bt.SetBytes(table, index);
                return(bt.value);
            }
Beispiel #2
0
            public static byte[] ToBytes(Vector2 val)
            {
                UnionVector2 bt = new UnionVector2();

                bt.value = val;
                return(bt.bytes);
            }
Beispiel #3
0
 // UnityUnions
 public static byte[] ToBytes(Vector2 val)
 {
     return(UnionVector2.ToBytes(val));
 }
Beispiel #4
0
 // UnityUnions
 public static int ToValue(out Vector2 ret, byte[] bytes, int index)
 {
     ret = UnionVector2.ToValue(bytes, index);
     return(UnionVector2.Size);
 }