Esempio n. 1
0
    private void Awake()
    {
        CompanyNameData set;

        try { set = JSONReader.ScanToObjectFromResources <CompanyNameData>("JSON/miningCompanyNames"); }
        catch { set = JSONReader.ScanToObjectFromStreamingAssets <CompanyNameData>("JSON/miningCompanyNames"); }
        GameData.Instance.nameData = set;
        Debug.Log(set.adjectives.Length);
    }