コード例 #1
0
    public static T Load <T>(string name) where T : UnityEngine.Object
    {
        string path = ResourcesConfigManager.GetResourcePath(name);

        if (m_gameLoadType == ResLoadLocation.Resource)
        {
            return(Resources.Load <T>(path.Replace("/", "\\")));
        }
        else
        {
            return(AssetsBundleManager.Load <T>(path));
        }
    }
コード例 #2
0
    public static object Load(string name)
    {
        string path = ResourcesConfigManager.GetResourcePath(name);

        if (m_gameLoadType == ResLoadLocation.Resource)
        {
            return(Resources.Load(path));
        }
        else
        {
            return(AssetsBundleManager.Load(path));
        }
    }
コード例 #3
0
    public static T Load <T>(string name) where T : UnityEngine.Object
    {
        if (name == null)
        {
            throw new Exception("ResourceManager Load<T> -> name is null !");
        }

        string path = ResourcesConfigManager.GetResourcePath(name);

        if (m_gameLoadType == ResLoadLocation.Resource)
        {
            return(Resources.Load <T>(path.Replace("/", "\\")));
        }
        else
        {
            return(AssetsBundleManager.Load <T>(path));
        }
    }
コード例 #4
0
    public static object Load(string name)
    {
        if (name == null)
        {
            throw new Exception("ResourceManager Load -> name is null !");
        }

        string path = ResourcesConfigManager.GetResourcePath(name);

        if (m_gameLoadType == ResLoadLocation.Resource)
        {
            return(Resources.Load(path));
        }
        else
        {
            return(AssetsBundleManager.Load(path));
        }
    }
コード例 #5
0
    public static T Load <T>(string name) where T : UnityEngine.Object
    {
        ResourcesConfig packData = ResourcesConfigManager.GetBundleConfig(name);

        if (packData == null)
        {
            throw new Exception("Load Exception not find " + name);
        }

        if (m_gameLoadType == ResLoadLocation.Resource)
        {
            return(Resources.Load <T>(packData.path));
        }
        else
        {
            return(AssetsBundleManager.Load <T>(name));
        }
    }
コード例 #6
0
    public static object Load(string name)
    {
        ResourcesConfig packData = ResourcesConfigManager.GetBundleConfig(name);

        if (packData == null)
        {
            throw new Exception("Load Exception not find " + name);
        }

        if (m_gameLoadType == ResLoadType.Resource)
        {
            return(Resources.Load(packData.path));
        }
        else
        {
            return(AssetsBundleManager.Load(name));
        }
    }