示例#1
0
    void OnEnable()
    {
        position = new Rect(position.position, _size);

        _stringsFilePath = Path.Combine(Application.streamingAssetsPath, STRINGS_FILENAME);
        // load the dictionary from the xml
        _strings = SerializableStringDictionary.read <SerializableStringDictionary>(_stringsFilePath);

        //Debug.Log("Loaded strings from " + _stringsFilePath);

        if (_strings == null || _strings.dict() == null)
        {
            _strings = new SerializableStringDictionary();
        }
    }
示例#2
0
 public Dictionary <string, Dictionary <string, string> > dict()
 {
     return(_strings.dict());
 }