Hey i want to make an 2D Player that can run and jump but it doesnt work.
it says:
NullReferenceException: Object reference not set to an instance of an object
Grounded.Start () (at Assets/Scripts/Grounded.cs:12)
NullReferenceException: Object reference not set to an instance of an object
Grounded.OnCollisionEnter2D (UnityEngine.Collision2D collision) (at Assets/Scripts/Grounded.cs:25)
NullReferenceException: Object reference not set to an instance of an object
Grounded.OnCollisionExit2D (UnityEngine.Collision2D collision) (at Assets/Scripts/Grounded.cs:33)
Can somebody help me? I am a beginner and the programm is from the internet but anyway it doesnt work.
Thank you for helping!