Search found 3 matches

by Jamish
Mon Dec 05, 2022 7:40 pm
Forum: Dialogue System for Unity
Topic: Run OnConversationStart and scripts for Conversant only
Replies: 3
Views: 203

Re: Run OnConversationStart and scripts for Conversant only

Thanks for the reply. I like your solution using OnConversationLine! I think I'll try that one out.

Thanks again!
by Jamish
Mon Dec 05, 2022 6:55 pm
Forum: Dialogue System for Unity
Topic: Run OnConversationStart and scripts for Conversant only
Replies: 3
Views: 203

Re: Run OnConversationStart and scripts for Conversant only

Ah, looks like I'm mistaken about BOTH of my questions. First, my OnConversationStart is not being called on all NPCs. I was hooking the event up wrong. It turns out the OnConversationStart handler was being double-invoked for my NPC. I only had two NPCs in the scene, and I was seeing two "Conv...
by Jamish
Mon Dec 05, 2022 3:55 pm
Forum: Dialogue System for Unity
Topic: Run OnConversationStart and scripts for Conversant only
Replies: 3
Views: 203

Run OnConversationStart and scripts for Conversant only

EDIT: I am mistaken about the problems; please see follow-up reply! ------------------------------ Hey, I've got a generic NPC.cs script that I reuse between a lot of NPC prefabs. The NPC.cs script is attached to my "NPC Prefab" GameObject. I want each NPC to be able to detect when the pla...