Error message in Tower Defence

I have a problem with Realm Rush - Tower Defence. Somewhere around lesson 128 my game stopped working. The enemy doesn’t move anymore. I get this error message:

NullReferenceException: Object reference not set to an instance of an object
EnemyMovement+d__2.MoveNext () (at Assets/EnemyMovement.cs:21)
UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) (at C:/buildslave/unity/build/Runtime/Export/Coroutines.cs:17)
EnemyMovement:Start() (at Assets/EnemyMovement.cs:12)

Hi Jim,

NullReferenceException means that a reference (“link”) to an instance is missing. Double click on the error message to see to which line in your code it is referring. If you exposed a field in the Inspector, make sure that it’s not empty.

Thanks! I added more blocks and didn’t update the path

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms