Exemple #1
0
    /// <summary>
    /// 获取材质
    /// </summary>
    /// <param name="resName">资源名称</param>
    /// <returns>Material 材质球</returns>
    public Material GetMaterialResourceByName(string resName)
    {
        Material material = null;

        material = m_netResourceController.GetMaterialResourceByName(resName);

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

        material = m_xmlResourcesController.GetMaterialResourceByName(resName);

        return(material);
    }