public void SyncState(Serializer ser) { ser.BeginSection(nameof(Port1)); Port1.SyncState(ser); Port2.SyncState(ser); ser.EndSection(); }
public void SyncState(Serializer ser) { ser.BeginSection("Port1"); Port1.SyncState(ser); ser.EndSection(); ser.BeginSection("Port2"); Port2.SyncState(ser); ser.EndSection(); }
public void SyncState(Serializer ser) { ser.BeginSection(nameof(Port1)); Port1.SyncState(ser); ser.Sync(nameof(temp_wheel1), ref temp_wheel1); ser.EndSection(); ser.BeginSection(nameof(Port2)); ser.Sync(nameof(temp_wheel2), ref temp_wheel2); Port2.SyncState(ser); ser.EndSection(); }
public void SyncState(Serializer ser) { ser.BeginSection("Port1"); ser.Sync("Wheel 1", ref wheel1); Port1.SyncState(ser); ser.EndSection(); ser.BeginSection("Port2"); ser.Sync("Wheel 2", ref wheel2); Port2.SyncState(ser); ser.EndSection(); }