Exemplo n.º 1
0
    /// <summary>
    /// 获取预制
    /// </summary>
    /// <param name="resName">资源名称</param>
    /// <returns>GameObject预制 未实例化</returns>
    public GameObject GetPrefabResourceByName(string resName)
    {
        GameObject obj = null;

        obj = m_netResourceController.GetPrefabResourceByName(resName);

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

        obj = m_xmlResourcesController.GetPrefabResourceByName(resName);

        return(obj);
    }