Casey Carroll:
NullReferenceException: Object reference not set to an instance of an object
SA.TB.LevelManager.LoadObstacles () (at Assets/Grid/LevelManager.cs:21)
SA.TB.GridBase.InitPhase () (at Assets/Grid/GridBase.cs:40)
SA.TB.GridBase.Start () (at Assets/Grid/GridBase.cs:28)
cs:21
{
BoxCollider bx = o.mainRender.gameObject.AddComponent ();
cs:40
GameManager.singleton.Init ();
LevelManager.singleton.LoadObstacles ();
CameraManager.singleton.Init ();
isInit = true;
}
cs:28
GameManager.singleton.Init ();
LevelManager.singleton.LoadObstacles ();
CameraManager.singleton.Init ();
isInit = true;
}
My characters refuse to move unless the red error is gone.
You have to take a look into ‘LoadObstacles’. According to the stack-trace, the method tries to access a variable that has not been initialized, i.e. it doesn’t reference an object.
Also, please use code tags .