Search found 1 match

by Eldinen
Sat Mar 31, 2018 9:05 am
Forum: Dialogue System for Unity
Topic: Destroying an NPC Object Within Conversation [Solved]
Replies: 5
Views: 697

Re: Destroying an NPC Object Within Conversation

You can use SendMessage(DestroyGameObject,,yourObject) then the gameobject yourObject must have a script with a method DestroyGameObject like this:

https://docs.unity3d.com/ScriptReferenc ... stroy.html

This destroy the gameobject, you cannot recovery it