void Start() { LocalizationModel model = AmbitionApp.GetModel <LocalizationModel>(); string[] conversationIntroList = model.GetList("conversation_intro"); DialogText.text = conversationIntroList[Util.RNG.Generate(conversationIntroList.Length)]; }
public string GetDateString(DateTime d) { LocalizationModel localization = AmbitionApp.GetModel <LocalizationModel>(); return(d.Day.ToString() + " " + localization.GetList("month")[d.Month - 1] + ", " + d.Year.ToString()); }
private string GetRandomDescriptor(string phrase) { string[] descriptors = _phrases.GetList(phrase); return(RNG.TakeRandom(descriptors)); }
private string rndStr(string phrase) { string [] list = _phrases.GetList(phrase); return(list[Util.RNG.Generate(0, list.Length)]); }