34
edits
| m (→Example: Make an object jump on clapping:  formatting) |  (→Unity:  formatting) | ||
| Line 101: | Line 101: | ||
| So you typed all that code and there are no errors but that stupid thing still won't do what it should - try Debug.Logs! Just add them everywhere! They can tell you what parts of your script are accessed after you press Play. <br> | So you typed all that code and there are no errors but that stupid thing still won't do what it should - try Debug.Logs! Just add them everywhere! They can tell you what parts of your script are accessed after you press Play. <br> | ||
| <source lang="javascript"> | <source lang="javascript"> | ||
| Debug.Log("Stakkars meg, som har skrevet 50 Debug.Logs"); | Debug.Log("Stakkars meg, som har skrevet 50 Debug.Logs"); | ||
| </source> | </source> | ||
| The lines will be written in the console section of Unity once they are accessed.<br><br>    | The lines will be written in the console section of Unity once they are accessed.<br><br>    | ||
edits