Beispiel #1
0
        public const string EVN = "Assets/";//"Assets/";


        #region I_ResourceLoad

        public I_ObjectInfo LoadAsset <T>(string resPath) where T : Object
        {
            T obj = AssetDatabase.LoadAssetAtPath <T>(EVN + resPath);

            ResLog.Assert(obj != null, "AssetDatabaseLoader 加载失败:[{0}]", resPath);
            I_ObjectInfo info = new ResInfo(obj, resPath);

            return(info);
        }
Beispiel #2
0
        public I_ObjectInfo LoadAsset <T>(string resPath) where T : Object
        {
            Object obj = Resources.Load(resPath);

            ResLog.Assert(obj != null, "ResoucesLoader 加载失败:[{0}]", resPath);
            I_ObjectInfo info = new ResInfo(obj, resPath);

            return(info);
        }
Beispiel #3
0
        public override I_ObjectInfo GetAsset <T>(string resPath)
        {
            I_ObjectInfo objectInfo = new ResInfo(_request.asset, RequestResPath);

            return(objectInfo);
        }