コード例 #1
0
ファイル: UIManagerLang.cs プロジェクト: oldOwlUA/PazzleGame
    private bool LoadData()
    {
        string filePath = dataLangPath;

        TextAsset aset = Resources.Load("Lang") as TextAsset;

        DataObj = JsonUtility.FromJson <DataLang>(aset.text);
        return(true);
    }
コード例 #2
0
    private void LoadData()
    {
        string filePath = Application.dataPath + dataLangPath;

        if (File.Exists(filePath))
        {
            string dataAsJson = File.ReadAllText(filePath);

            DataObj = JsonUtility.FromJson <DataLang>(dataAsJson);
            Debug.Log(filePath + " is not Exist");
        }
    }