Exemplo n.º 1
0
    public static T readJson <T>(e_Paths path)
    {
        Debug.Log("PATH: " + getPath(path));
        T json = JsonUtility.FromJson <T> (File.ReadAllText(getPath(path)));

        return(json);
    }
Exemplo n.º 2
0
 public static string getPath(e_Paths path)
 {
     return(paths[(int)path]);
 }