- Home /
Question by
Mschri · Aug 02, 2016 at 08:22 PM ·
errorerror messagedestroy objectlives
Why is Unity 5 Not allowing me to Destroy an Object???
Hello, I am getting a compiler error from Unity 5 on my javascript file for tring to Destroy the player object if the lives are reduced to 0. The error message implies that the Destroy is an Unknown identifier. Here is the pic of the source code.
PLEASE HELP!
check-if-lives-are-depletted.jpg
(53.3 kB)
Comment
Your answer
Follow this Question
Related Questions
The type or namespace "Target" could not be found? 1 Answer
Can't download assets in unity asset store 0 Answers
Keep getting this error message,Hi whenever i open the editor i keep getting this error. 0 Answers
Why have error: NullReferenceException: Object reference not set to an instance of an object 1 Answer
Error "OnTriggerEnter: this message has to be of type: Collider" 0 Answers