示例#1
0
    static public void LoadPrefabWithInstanceNOCoroutine(string iFilename, AsyncLoadingPrefabComplete iCallback = null, string iObjname = "Load Prefab", bool iIsFromResources = true)
    {
        GameObject   _Loader = new GameObject(iObjname);
        PrefabLoader _Script = _Loader.AddComponent <PrefabLoader>();

        if (_Script)
        {
            _Script.LoadPrfab(iFilename, iCallback, true, iIsFromResources);
        }
    }