Hi,
I am using the Spine Tool to set up some animations for some NPC's portrait when a conversation starts.
Is there a way I could check which NPC I am having a conversation with for swapping the spine skeleton UI?
Thanks!
[Solved] Character Dialogue Animation -> Spine Tool
[Solved] Character Dialogue Animation -> Spine Tool
Last edited by Japtor on Tue Aug 21, 2018 5:36 am, edited 1 time in total.
Re: Character Dialogue Animation -> Spine Tool
Hi,
Yes, it's DialogueManager.currentConversant.
Also, if you have a script or Dialogue System Events on the player, its OnConversationStart event will receive the transform of the NPC:
(Note: If the script or Dialogue System Events is on the NPC or Dialogue Manager, its OnConversationStart event will receive the transform of the player.)
Yes, it's DialogueManager.currentConversant.
Also, if you have a script or Dialogue System Events on the player, its OnConversationStart event will receive the transform of the NPC:
Code: Select all
void OnConversationStart(Transform npc) {
Debug.Log("Player is starting conversation with NPC " + npc);
}
Re: Character Dialogue Animation -> Spine Tool
Hi,
Thanks! That helped me a lot!
Thanks! That helped me a lot!