void TellIpToGoToHisTent() { NPC_AI m_AI = GetComponentInParent <NPC_AI>(); Animator animator = GetComponentInParent <Animator>(); animator.SetBool("run", true); m_AI.GoToTent(); DialogueEvents.OnDialogueEnd -= Handle_OnDialogueEnd; Destroy(this); }
void TellIpToGoToHisTent() { NPC_AI m_AI = GetComponentInParent <NPC_AI>(); Animator animator = GetComponentInParent <Animator>(); animator.SetBool("run", true); m_AI.GoToTent(); DialogueEvents.OnDialogueEnd -= Handle_OnDialogueEnd; Destroy(this); }