Beispiel #1
0
 public void Write(Bounds bounds)
 {
     using (var scope = new JsonScopeObjectWriter(writer))
     {
         scope.WriteKeyValue("min", bounds.min);
         scope.WriteKeyValue("max", bounds.max);
     }
 }
Beispiel #2
0
 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);
     }
 }