How can I make it so it only jumps once and doesn't allow you to do it again until you land back on the platform?
According to my teacher the problem is here but I have had no luck fixing it
if (Input.GetKeyDown(KeyCode.Space)) { if (ray) { rb.AddForce(force * Vector3.up, ForceMode.Impulse); } }
I hope some one can help
Comments
Post a Comment