コード例 #1
0
 /// <summary>
 /// Serialize the MmMessageTransform
 /// </summary>
 /// <param name="writer">Object array representation of a MmMessageTransform</param>
 public override object[] Serialize()
 {
     object[] baseSerialized = base.Serialize();
     object[] thisSerialized = MmTransform.Serialize();
     thisSerialized = thisSerialized.Concat(new object[] { LocalTransform }).ToArray();
     object[] combinedSerialized = baseSerialized.Concat(thisSerialized).ToArray();
     return(combinedSerialized);
 }
コード例 #2
0
 /// <summary>
 /// Serialize the MmMessage
 /// </summary>
 /// <param name="writer">UNET based serializer</param>
 public override void Serialize(NetworkWriter writer)
 {
     base.Serialize(writer);
     MmTransform.Serialize(writer);
     writer.Write(LocalTransform);
 }