using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Events;
using LuaInterface;
using GameCore;
using System.IO;
using ResUpdate;
namespace GameLogic {
///
/// 资源管理器
///
public class ResourcesManager : Singleton
{
public bool isLoading;
ResMgr.ResourcesManager resMgr = ResMgr.ResourcesManager.Instance;
///
/// 初始化
///
public void Initialize(bool isReleaseVer)
{
//资源路径配置
ResMgr.ResConfig.PersistentDataPath = AppConst.PersistentDataPath;
ResMgr.ResConfig.StreamPath = AppConst.StreamPath;
resMgr.Init(isReleaseVer);
Debug.LogFormat("================>ResourcesManager.Initialize,isReleaseVer:{0}",isReleaseVer);
}
///
/// 同步加载资源
///
/// 资源类型
/// 资源名
///
[NoToLua]
public T LoadAsset(string assetName) where T : Object
{
return resMgr.LoadAsset(assetName);
}
///
/// 同步加载资源
///
/// 资源名
///
public Object LoadAsset(string assetName)
{
return resMgr.LoadAsset