Beispiel #1
0
    public static void Instantiate(string path, Vector3 position, Quaternion rotation, float time)
    {
        bool flag = !SceneFXMgr.m_mapAssetsRes.ContainsKey(path);

        if (flag)
        {
            AssetResInfo value = new AssetResInfo();
            SceneFXMgr.m_mapAssetsRes[path]  = value;
            SceneFXMgr.m_mapLoadingRes[path] = value;
        }
        SceneFXMgr.m_mapAssetsRes[path].Instantiate(path, position, rotation, time);
    }
Beispiel #2
0
    //static private Dictionary<string, AssetResInfo> m_mapLoadingRes = new Dictionary<string, AssetResInfo>();
    //static string m_bAsync_Key = null;
    static public void Instantiate(string path, Vector3 position, Quaternion rotation, float time)
    {
        if (false == m_mapAssetsRes.ContainsKey(path))
        {
            AssetResInfo arinfo = new AssetResInfo();
            arinfo.m_AB_Asset    = GAMEAPI.ABFight_LoadPrefab(path);
            m_mapAssetsRes[path] = arinfo;
            //m_mapLoadingRes[path] = arinfo;
        }

        m_mapAssetsRes[path].Instantiate(path, position, rotation, time);
    }