Skip to content

Option to use in Unscaled Time / use WaitForSecondsRealtime instead #32

Closed
@nguyentrong101094

Description

@nguyentrong101094

I'm using this component for tutorial dialogue. There is a case where I use it in a pause screen where Time.timeScale = 0. This component doesn't work there.
I tried changing this line:
yield return new WaitForSeconds(this.characterPrintDelays[currPrintedChars - 1]);
to
yield return new WaitForSecondsRealtime(this.characterPrintDelays[currPrintedChars - 1]);
but it leads to an exception related to the array characterPrintDelays.
Can you please add the option? Like a bool field to toggle using scaled time or not

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions