Ejemplo n.º 1
0
 // Methods
 /// <summary>
 /// Called by the replay system when the variable should be serialized.
 /// </summary>
 /// <param name="state">The <see cref="ReplayState"/> to serialize the data into</param>
 public void OnReplaySerialize(ReplayState state)
 {
     try
     {
         // Write the current field value
         state.TryWriteObject(Value);
     }
     catch { }
 }