public static void Put(this NetDataWriter dw, UnityEngine.Vector4 v4) { dw.Put(HalfTypeUtils.Convert(v4.x)); dw.Put(HalfTypeUtils.Convert(v4.y)); dw.Put(HalfTypeUtils.Convert(v4.z)); dw.Put(HalfTypeUtils.Convert(v4.w)); }
public static void Put(this NetDataWriter dw, UnityEngine.Color color) { dw.Put(HalfTypeUtils.Convert(color.r)); dw.Put(HalfTypeUtils.Convert(color.g)); dw.Put(HalfTypeUtils.Convert(color.b)); dw.Put(HalfTypeUtils.Convert(color.a)); }
public static UnityEngine.Vector3 GetVector3(this NetDataReader dr) { return(new UnityEngine.Vector3(HalfTypeUtils.Convert(dr.GetUShort()), HalfTypeUtils.Convert(dr.GetUShort()), HalfTypeUtils.Convert(dr.GetUShort()))); }
public static void Put(this NetDataWriter dw, UnityEngine.Vector2 vector) { dw.Put(HalfTypeUtils.Convert(vector.x)); dw.Put(HalfTypeUtils.Convert(vector.y)); }
public static UnityEngine.Color GetColor(this NetDataReader dr) { return(new UnityEngine.Color(HalfTypeUtils.Convert(dr.GetUShort()), HalfTypeUtils.Convert(dr.GetUShort()), HalfTypeUtils.Convert(dr.GetUShort()), HalfTypeUtils.Convert(dr.GetUShort()))); }