I am having trouble getting my main menu to work. I have been able to set up the buttons and canvas and all that but for some reason I cannot figure how to work the button on click function and just lost over what to do.
1 Answer
1Click on your button, in the inspector look for an area that says “OnClick”, hit the plus sign, now drag in a gameobject that contains a script with a public method, this method now allows you to do stuff such as launch the game.
Ah, yes, I forgot about the gravity, you must update it in the OnCollisionStay2D using the collision's normal. I edited my answer.
– Fluffy_Kaeloky