Exemple #1
0
 private void UpdateDialogue(DialogueSet.Dialogue d, DialogueSet dSet)
 {
     if (d.expression != "")
     {
         speakerImage.anim = dSet.character.GetExpression(d.expression);
         speakerImage.Play();
     }
     dialogueText.UpdateText(d.text);
 }
Exemple #2
0
 public void UpdateScrollingText(bool isOn)
 {
     if (isOn)
     {
         scrollingText.UpdateText(text);
     }
     else
     {
         scrollingText.SetToDefaultText();
     }
 }
    private void DisplayNewTip()
    {
        int debugCounter     = 0;
        int selectedTipIndex = Random.Range(0, tips.Length);

        while (selectedTipIndex == currentTipIndex && debugCounter < 1000)
        {
            selectedTipIndex = Random.Range(0, tips.Length);
            debugCounter++;
        }
        currentTipIndex = selectedTipIndex;
        textPanel.gameObject.SetActive(true);
        scrollingText.UpdateText(tips[currentTipIndex]);
    }