Exemple #1
0
        //Get random phrase from set category
        public static void GetRandomPhrase(int input)
        {
            int word = RandomPhrase.getRandomPhrase("word", input);

            Globals.phrase = Library.list[input][word];
            GetCategory(input);
        }
Exemple #2
0
        //Get random phrase from a random category
        public static void GetPhrase()
        {
            int category = RandomPhrase.getRandomPhrase("category", list.Length);
            int word     = RandomPhrase.getRandomPhrase("word", category);

            Globals.phrase = Library.list[category][word];
            GetCategory(category);
        }