public ReelStrips(ReelStripJsonContainer json)
 {
     realStrips = new ReelStrip[json.ReelStrips.Count];
     for (int i = 0; i < realStrips.Length; i++)
     {
         realStrips[i] = new ReelStrip(json.ReelStrips[i]);
     }
 }
Exemple #2
0
    //Takes in a path to the resources folder and returns the ReelStrips that it finds
    public ReelStrips loadReelStrips(string path)
    {
        ReelStripJsonContainer reelStripJson = JsonConvert.DeserializeObject <ReelStripJsonContainer>(getStringFromTextFile(path));

        if (reelStripJson == null)
        {
            Debug.Log("Couldn't find Reels at path: " + path);
        }
        else
        {
            ReelStrips retval = new ReelStrips(reelStripJson);
            return(retval);
        }
        return(null);
    }