//Takes in a path to the resources folder and returns the SpinsContainer that it finds public SpinsContainer loadSpins(string path) { SpinsContainer retval = null; retval = JsonConvert.DeserializeObject <SpinsContainer>(getStringFromTextFile(path)); if (retval == null) { Debug.Log("Couldn't find spins at path: " + path); } return(retval); }
// Use this for initialization void Start() { possibleSpins = JsonLoader.instance.loadSpins(jsonPathToSpins); }