Beispiel #1
0
    /// <summary>
    /// 获取精灵贴图
    /// </summary>
    /// <param name="resName">资源名称</param>
    /// <returns>Sprite贴图</returns>
    public Sprite GetSpriteResourceByName(string resName)
    {
        Sprite sprite = null;

        sprite = m_netResourceController.GetSpriteResourceByName(resName);

        if (sprite != null)
        {
            return(sprite);
        }

        sprite = m_xmlResourcesController.GetSpriteResourceByName(resName);

        return(sprite);
    }