Esempio n. 1
0
    //////////////////////////////////////////////////////////////////////////
    public void OnBeforeSerialize()
    {
#if UNITY_EDITOR
        if (gameObject == null)
        {
            return;
        }

        m_ResourcePath = SerializationManager.AssetPathToResourcePath(PrefabUtility.GetPrefabAssetPathOfNearestInstanceRoot(gameObject));
#endif
    }
Esempio n. 2
0
    public void Read()
    {
        var res = SerializationManager.AssetPathToResourcePath(UnityEditor.AssetDatabase.GetAssetPath(SaveFolder));

        LocalizationManager.Read(res, true);
    }