예제 #1
0
    /// <summary>
    /// 获取精灵贴图数组
    /// </summary>
    /// <param name="resName">资源名称</param>
    /// <returns>Sprite贴图数组</returns>
    public Sprite[] GetSpriteArrayResourceByName(string resName)
    {
        Sprite[] spriteArray = null;

        spriteArray = m_netResourceController.GetSpriteArrayResourceByName(resName);

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

        spriteArray = m_xmlResourcesController.GetSpriteArrayResourceByName(resName);

        return(spriteArray);
    }