public void Write(Bounds bounds) { using (var scope = new JsonScopeObjectWriter(writer)) { scope.WriteKeyValue("min", bounds.min); scope.WriteKeyValue("max", bounds.max); } }
public void Write(Color color) { using (var scope = new JsonScopeObjectWriter(writer)) { scope.WriteKeyValue("r", color.r); scope.WriteKeyValue("g", color.g); scope.WriteKeyValue("b", color.b); scope.WriteKeyValue("a", color.a); } }