Exemplo n.º 1
0
    public object getValue(object map, bool isLuatable)
    {
        object r = getValue(transform, map, isLuatable);

#if UNITY_EDITOR
        if (r is Hashtable)
        {
            Debug.Log(Utl.MapToString(r as Hashtable));
        }
#endif
        return(r);
    }
Exemplo n.º 2
0
    static public void showBioFileContent()
    {
        UnityEngine.Object obj  = Selection.objects [0];
        string             path = AssetDatabase.GetAssetPath(obj);//Selection表示你鼠标选择激活的对象
        object             _obj = Utl.fileToObj(path);

        if (_obj is Hashtable)
        {
            Debug.Log(Utl.MapToString((Hashtable)_obj));
        }
        else if (_obj.GetType() == typeof(NewList) ||
                 _obj.GetType() == typeof(ArrayList))
        {
            Debug.Log(Utl.ArrayListToString2((ArrayList)_obj));
        }
        else
        {
            Debug.Log(_obj.ToString());
        }
    }