diff --git a/spine-csharp/src/SkeletonJson.cs b/spine-csharp/src/SkeletonJson.cs index 0aae8de0e..c4fff9d2e 100644 --- a/spine-csharp/src/SkeletonJson.cs +++ b/spine-csharp/src/SkeletonJson.cs @@ -228,7 +228,7 @@ namespace Spine { private int GetInt (Dictionary map, String name, int defaultValue) { if (!map.ContainsKey(name)) return defaultValue; - return (int)map[name]; + return (int)(float)map[name]; } private bool GetBoolean (Dictionary map, String name, bool defaultValue) { diff --git a/spine-xna/example/data/spineboy.json b/spine-xna/example/data/spineboy.json index 113e72c33..b5a9cf9b7 100644 --- a/spine-xna/example/data/spineboy.json +++ b/spine-xna/example/data/spineboy.json @@ -119,7 +119,7 @@ } }, "events": { - "behind": {}, + "behind": { "int": 4 }, "headAttach": {}, "headPop": {} },