public ProfanityController() { Service.ProfanityController = this; this.profaneWordsLoose = new List <string>(); this.profaneWordsStrict = new List <string>(); this.reservedWords = new List <string>(); string b = Service.Lang.ExtractLanguageFromLocale(); StaticDataController staticDataController = Service.StaticDataController; foreach (ProfanityVO current in staticDataController.GetAll <ProfanityVO>()) { string[] words = current.Words; if (current.Uid == "reserved") { this.reservedWords.AddRange(words); } else if (current.Uid == b || current.Uid == "en") { this.profaneWordsLoose.AddRange(words); } else { this.profaneWordsStrict.AddRange(words); } } for (int i = 0; i < this.profaneWordsLoose.Count; i++) { this.profaneWordsLoose[i] = this.profaneWordsLoose[i].ToLower(); } for (int j = 0; j < this.profaneWordsStrict.Count; j++) { this.profaneWordsStrict[j] = this.profaneWordsStrict[j].ToLower(); } staticDataController.Unload <ProfanityVO>(); }