Ejemplo n.º 1
0
            public new static Opponents FromJsonToken(JToken token)
            {
                //IL_0001: Unknown result type (might be due to invalid IL or missing references)
                //IL_0007: Invalid comparison between Unknown and I4
                //IL_000f: Unknown result type (might be due to invalid IL or missing references)
                if ((int)token.get_Type() != 1)
                {
                    Debug.LogWarning((object)("Malformed token : type Object expected, but " + token.get_Type() + " found"));
                    return(null);
                }
                JObject   jsonObject = Extensions.Value <JObject>((IEnumerable <JToken>)token);
                Opponents opponents  = new Opponents();

                opponents.PopulateFromJson(jsonObject);
                return(opponents);
            }