On Unuse / On Conversation ends USABLE

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
User avatar
rauljl1
Posts: 55
Joined: Fri Apr 15, 2022 7:40 pm

On Unuse / On Conversation ends USABLE

Post by rauljl1 »

Hi, Tony.
I see that a Usable component have 3 events: On Select(), On Deselect() and On Use(). How to add/create one more which is On Conversation ends.
I show a sprite when Select and hide when Deselect or On Use. But I want to show too when the conversation ends. Because, the player is still in range.
User avatar
Tony Li
Posts: 22143
Joined: Thu Jul 18, 2013 1:27 pm

Re: On Unuse / On Conversation ends USABLE

Post by Tony Li »

Hi,

What about adding a Dialogue System Events component to the same GameObject? Dialogue System Events has an OnConversationEnd() event.

Please see Script Events & Messages for the list of GameObjects that receive OnConversationEnd messages.
Post Reply