예제 #1
0
    //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);
    }
예제 #2
0
 // Use this for initialization
 void Start()
 {
     possibleSpins = JsonLoader.instance.loadSpins(jsonPathToSpins);
 }