public IRes Create(string name) { if (s_AssetResCreatorWrap.CheckResType(name)) { return(s_AssetResCreatorWrap.CreateRes(name)); } else { for (int i = 0; i < m_CreatorList.Count; i++) { if (m_CreatorList[i].CheckResType(name)) { return(m_CreatorList[i].CreateRes(name)); } } } return(null); }
public static IRes Create(string name) { if (s_AssetResCreatorWrap.CheckResType(name)) { return(s_AssetResCreatorWrap.CreateRes(name)); } else { for (int i = s_CreatorList.Count - 1; i >= 0; --i) { if (s_CreatorList[i].CheckResType(name)) { return(s_CreatorList[i].CreateRes(name)); } } } Log.e("Not Find ResCreate For Res:" + name); return(null); }