public override void Serialize(SerializeEvent e) { e.Writer.Write(ttsid); GameObjectGenericMessage.SerializePosition(position, e); GameObjectGenericMessage.SerializeRotation(rotation, e); e.Writer.Write(parentTTSID); e.Writer.Write(tag); e.Writer.Write(name); e.Writer.Write(prefabID); e.Writer.Write("CHECK"); }
public override void Deserialize(DeserializeEvent e) { ttsid = e.Reader.ReadUInt16(); position = GameObjectGenericMessage.DeserializePosition(e); rotation = GameObjectGenericMessage.DeserializeRotation(e); parentTTSID = e.Reader.ReadUInt16(); tag = e.Reader.ReadString(); name = e.Reader.ReadString(); prefabID = e.Reader.ReadString(); Debug.Log(e.Reader.ReadString()); }
public override void Serialize(SerializeEvent e) { e.Writer.Write(ttsid); GameObjectGenericMessage.SerializePosition(position, e); GameObjectGenericMessage.SerializeRotation(rotation, e); }
public override void Deserialize(DeserializeEvent e) { ttsid = e.Reader.ReadUInt16(); position = GameObjectGenericMessage.DeserializePosition(e); rotation = GameObjectGenericMessage.DeserializeRotation(e); }