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(); } }
public Dictionary <string, Dictionary <string, string> > dict() { return(_strings.dict()); }