private ResourceLoadThread m_BackLoadThread; //异步加载线程 public void Setup() { m_ShareGUID = 0; ResourceLoaderManager.Instance.EnableLog = GlobalID.IsLogLoad; m_FrontLoadThread = new ResourceLoadSyncThread(); m_BackLoadThread = new ResourceLoadAsyncThread(); m_FrontLoadThread.Setup(eResLoadStrategy.FIFO, eResLoadThreadType.SYNC); m_BackLoadThread.Setup(eResLoadStrategy.FIFO, eResLoadThreadType.ASYNC); }
public void Destroy() { if (m_FrontLoadThread != null) { m_FrontLoadThread.Destroy(); m_FrontLoadThread = null; } if (m_BackLoadThread != null) { m_BackLoadThread.Destroy(); m_BackLoadThread = null; } }