Question by
Tiberseptim777 · Jul 31, 2017 at 05:06 AM ·
c#gameobjectinstantiateunity 2d
Destroying game object
Hi, i've been having problem with my game the last few days because when i try to destroy my Spaceship GameObject by shooting at it, the game object disappears, stops spawning clones and gives an error message that says :"The object of type 'GameObject' has been destroyed but you are still trying to access it" but when i collide the GameObject i control against the Spaceship GameObject it works normally and keeps spawning clones. What can i do to fix it? Thanks
Comment
Your answer
Follow this Question
Related Questions
Instantiate as child for gameobjects with tag 1 Answer
Attach a shield to player (C#) 2 Answers
No gameobject instance again in update 1 Answer