コード例 #1
0
    public static void LoadAsync(string name, LoadCallBack callBack)
    {
        string path = ResourcesConfigManager.GetResourcePath(name);

        if (m_gameLoadType == ResLoadLocation.Resource)
        {
            ResourceIOTool.ResourceLoadAsync(path, callBack);
        }
        else
        {
            AssetsBundleManager.LoadAsync(path, callBack);
        }
    }
コード例 #2
0
    public static void LoadAsync(string name, LoadCallBack callBack)
    {
        if (name == null)
        {
            throw new Exception("ResourceManager LoadAsync -> name is null !");
        }
        string path = ResourcesConfigManager.GetResourcePath(name);

        if (m_gameLoadType == ResLoadLocation.Resource)
        {
            ResourceIOTool.ResourceLoadAsync(path, null, callBack);
        }
        else
        {
            AssetsBundleManager.LoadAsync(path, null, callBack);
        }
    }
コード例 #3
0
    public static void LoadAsync(string name, LoadCallBack callBack)
    {
        ResourcesConfig packData = ResourcesConfigManager.GetBundleConfig(name);

        if (packData == null)
        {
            return;
        }

        if (m_gameLoadType == ResLoadLocation.Resource)
        {
            ResourceIOTool.ResourceLoadAsync(packData.path, callBack);
        }
        else
        {
            AssetsBundleManager.LoadAsync(name, callBack);
        }
    }
コード例 #4
0
    public static void LoadAsync(string name, LoadCallBack callBack)
    {
        BundleConfig packData = BundleConfigManager.GetBundleConfig(name);

        if (packData == null)
        {
            return;
        }

        ResLoadType loadTypeTmp = GetLoadType(packData.loadType);

        if (loadTypeTmp == ResLoadType.Resource)
        {
            ResourceIOTool.ResourceLoadAsync(packData.path, callBack);
        }
        else
        {
            AssetsBundleManager.LoadAsync(name, callBack);
        }
    }