/// <summary> /// 获取贴图 /// </summary> /// <param name="resName">资源名称</param> /// <returns>Texture贴图</returns> public Texture GetTextureResourceByName(string resName) { Texture texture = null; texture = m_netResourceController.GetTextureResourceByName(resName); if (texture != null) { return(texture); } texture = m_xmlResourcesController.GetTextureResourceByName(resName); return(texture); }