// Update bubble progress
    void updateBubbleProgress()
    {
        int totalChars = textObject.getTotalVisibleChars();
        int showChars  = textObject.getVisibleChars();

        bubbleProgress = (showChars * 100) / totalChars;
    }
Esempio n. 2
0
 void OnFontLocalized()
 {
     if (introTextForceCompletionTime > 0f)
     {
         float newSpeed = textPlayer.getTotalVisibleChars() / introTextForceCompletionTime;
         textPlayer.setAdvanceSpeed(newSpeed);
     }
 }
Esempio n. 3
0
    void Start()
    {
        textComp         = GetComponent <TMP_Text>();
        textPlayer       = GetComponent <AdvancingText>();
        defaultTextSpeed = textPlayer.getAdvanceSpeed();

        SetDialogue(DatingSimHelper.getSelectedCharacter().getLocalizedIntroDialogue());

        if (introTextForceCompletionTime > 0f)
        {
            float newSpeed = textPlayer.getTotalVisibleChars() / introTextForceCompletionTime;
            textPlayer.setAdvanceSpeed(newSpeed);
        }

        textPlayer.enabled = false;
        Invoke("EnableTextPlayer", introTextDelay);
    }
 void showRhyme()
 {
     advancingText.Progress = advancingText.getTotalVisibleChars(false);
     highlightReachedTime   = Time.time;
     rhymeStarted           = true;
 }