Esempio n. 1
0
    IEnumerator ResLoadAssets(string path)
    {
        yield return(null);

        UnityEngine.Object obj = Resources.Load(path);
        if (obj != null)
        {
            if (!mResLoaded.ContainsKey(path))
            {
                mResLoaded.Add(path, obj);
            }
            else
            {
                LogHelp.LogConsole("key contains in dic:" + path);
            }
        }
        mLoadedNum += 1;
    }