- Home /
Im trying to build a game.I have an enemy Ai that uses the players position to track and move.But i get a null reference exception when player dies.Can anybody help ?
I have a game controller script.And i have a script that is for the player's health.I have no issues in these.But even after trying to load a level.But the game immediately gives an exception from the enemy Ai script.I compared the gameobject with null.But doesnt look like its working. Here is what i compared if(object.Equals(Target, null)) // doesnt compare Application.LoadLevel("menu"); Any suggestions please ?
Your answer
Follow this Question
Related Questions
NullReferenceException at line . . . 1 Answer
NullReference exception after StopCoroutine 2 Answers
While level restarted I get NullReferenceException 0 Answers
Object reference is NULL when IT IS set to an instance of an object? 1 Answer
Has my project's data corrupted? Script keeps returning null but 20 minutes ago it wasn't? 1 Answer