i'm getting this error when the collider colides with something:
Object reference not set to an instance of an object
It's referencing to the gamecont.Death(); from this script:
and the death method is on this one:
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It only takes a minute to sign up.Sign up to join this community
If gamecont is null, then probably the assignment from GetComponent failed which means either the component is not attached to the same GameObject as the one using the ObstacleMove script, or that the instance of GameController is disabled (see the component's check box).