Exemplo n.º 1
0
    /// <summary>
    /// 初始化脚本资源的IDMap配置
    /// </summary>
    void InitResourceIDPath()
    {
        TextAsset t = null;

#if UNITY_EDITOR
        if (GameUtils.ScriptLoad)
        {
            t = UnityEditor.AssetDatabase.LoadAssetAtPath <TextAsset>("assets/abresources/autogenerate/pathidmap.xml");
        }
        else
#endif
        {
            t = Load <TextAsset>("autogenerate/pathidmap", "");
        }
        if (t != null)
        {
            ResourceID.ReMap(t != null ? t.text : null);
            t = null;
        }
    }