예제 #1
0
        void Start()
        {
            LocalizationModel model = AmbitionApp.GetModel <LocalizationModel>();

            string[] conversationIntroList = model.GetList("conversation_intro");
            DialogText.text = conversationIntroList[Util.RNG.Generate(conversationIntroList.Length)];
        }
예제 #2
0
        public string GetDateString(DateTime d)
        {
            LocalizationModel localization = AmbitionApp.GetModel <LocalizationModel>();

            return(d.Day.ToString() + " " + localization.GetList("month")[d.Month - 1] + ", " + d.Year.ToString());
        }
예제 #3
0
 private string GetRandomDescriptor(string phrase)
 {
     string[] descriptors = _phrases.GetList(phrase);
     return(RNG.TakeRandom(descriptors));
 }
예제 #4
0
 private string rndStr(string phrase)
 {
     string [] list = _phrases.GetList(phrase);
     return(list[Util.RNG.Generate(0, list.Length)]);
 }