/** * Populates the text property of a single scene object with a new text value. */ public virtual bool PopulateTextProperty(string stringId, string newText) { // Ensure that all localizeable objects have been cached if (localizeableObjects.Count == 0) { CacheLocalizeableObjects(); } ILocalizable localizable = null; localizeableObjects.TryGetValue(stringId, out localizable); if (localizable != null) { localizable.SetStandardText(newText); return(true); } else { Say say = new Say(); object[] attributes = say.GetType().GetCustomAttributes(false); foreach (object obj in attributes) { CommandInfoAttribute infoAttr = obj as CommandInfoAttribute; if (infoAttr != null) { string dictionaryName = string.Format("{0}", infoAttr.CommandName); Debug.Log(dictionaryName); } } } return(false); }
/** * Populates the text property of a single scene object with a new text value. */ public virtual bool PopulateTextProperty(string stringId, string newText) { // Ensure that all localizeable objects have been cached if (localizeableObjects.Count == 0) { CacheLocalizeableObjects(); } ILocalizable localizable = null; localizeableObjects.TryGetValue(stringId, out localizable); if (localizable != null) { localizable.SetStandardText(newText); return(true); } return(false); }