Forráskód Böngészése

Merge branch 'master' of https://github.com/EsotericSoftware/spine-runtimes

pharan 9 éve
szülő
commit
7211cc3c7b
1 módosított fájl, 2 hozzáadás és 8 törlés
  1. 2 8
      spine-csharp/src/Json.cs

+ 2 - 8
spine-csharp/src/Json.cs

@@ -2,15 +2,9 @@ using System.IO;
 
 
 namespace Spine {
 namespace Spine {
 	public static class Json {
 	public static class Json {
-		
-		static readonly SharpJson.JsonDecoder parser;
-
-		static Json () {
-			parser = new SharpJson.JsonDecoder();
-			parser.parseNumbersAsFloat = true;
-		}
-
 		public static object Deserialize (TextReader text) {
 		public static object Deserialize (TextReader text) {
+			var parser = new SharpJson.JsonDecoder();
+			parser.parseNumbersAsFloat = true;
 			return parser.Decode(text.ReadToEnd());
 			return parser.Decode(text.ReadToEnd());
 		}
 		}
 	}
 	}