default commands in other scripts?

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
robster21
Posts: 38
Joined: Tue Aug 23, 2022 9:02 am

default commands in other scripts?

Post by robster21 »

How can I invoke the default commands (e.g. Fade(), SpineAnimation()) in other scripts?
User avatar
Tony Li
Posts: 22143
Joined: Thu Jul 18, 2013 1:27 pm

Re: default commands in other scripts?

Post by Tony Li »

Hi,

You can use DialogueManager.PlaySequence(). Example:

Code: Select all

Debug.Log("Farewell...");
DialogueManager.PlaySequence("Fade(stay)");
robster21
Posts: 38
Joined: Tue Aug 23, 2022 9:02 am

Re: default commands in other scripts?

Post by robster21 »

It works, thank you! :))))
User avatar
Tony Li
Posts: 22143
Joined: Thu Jul 18, 2013 1:27 pm

Re: default commands in other scripts?

Post by Tony Li »

Happy to help!
Post Reply