예제 #1
0
 public void SerializeRope(Rope r)
 {
     if (r != null)
     {
         this.ropeData.Write(true);
         this.ropeData.Write(CompressedVec2Binding.GetCompressedVec2(r.attach2Point));
         this.SerializeRope(r.attach2 as Rope);
     }
     else
     {
         this.ropeData.Write(false);
     }
 }
예제 #2
0
 public override object GetNetValue() => (object)CompressedVec2Binding.GetCompressedVec2((Vec2)this.value, this._range);