コード例 #1
0
ファイル: UITest.cs プロジェクト: NickMcCrea/MasterCraftsman
    private void ActivateDialogueTest()
    {
        string[] testStrings = new string[10];

        for (int i = 0; i < testStrings.Length; i++)
        {
            string s          = "";
            int    charAmount = Random.Range(50, 100); //set those to the minimum and maximum length of your string
            for (int j = 0; j < charAmount; j++)
            {
                s += glyphs[Random.Range(0, glyphs.Length)];
            }
            testStrings[i] = s;
        }



        dbc.SetText(testStrings);
        dbc.OpenDialogue();
    }
コード例 #2
0
 public override void ShowDialogueSingle(string dialogueLetter)
 {
     DialogueBoxController.SetText(dialogueLetter, CurrentStyle);
 }