Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Help with code

 
Nikola Pejovski
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In Unity, I have tried many buttons but I can't connect them with the (Java)Script.

So I made 2 gui buttons: one for jump which was easy because I had an if statement and if it's true then jump.

But I have problems with the crouch button. Bellow is my script but I can't figure out how to put the crouch code in > function OnGUI()

This is my script:


 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic