public override void Serialize(NetworkWriter writer) { var json = new MultiplayerAgent.Helpers.SimpleJsonInstance(); var str = json.SerializeObject(ScheduledMaintenanceUTC); writer.Write(str); }
public override void Deserialize(NetworkReader reader) { var json = new MultiplayerAgent.Helpers.SimpleJsonInstance(); ScheduledMaintenanceUTC = json.DeserializeObject <DateTime>(reader.ReadString()); }