示例#1
0
    public void reset()
    {
        rng.Randomize();
        questionLabel.Text = "";
        answerLabel.Text   = "";
        randomWord         = words[rng.RandiRange(0, words.Count - 1)];
        active             = false;
        start.y            = rng.RandfRange(20f, 220f);
        SetPosition(start);

        questionLabel.Text = randomWord.kanji;
        for (int i = 0; i < randomWord.meaning.Length; i++)
        {
            answerLabel.Text += "_";
        }
    }
示例#2
0
 static void Main(string[] args)
 {
     // 20 chapters of vocab from the genki textbook
     var genkiVocab = new JapaneseWord[20][];
 }