This shows you the differences between two versions of the page.
|
pjv:laboratoare:en:02 [2019/10/23 14:32] alexandru.gradinaru |
pjv:laboratoare:en:02 [2019/10/23 14:33] (current) alexandru.gradinaru |
||
|---|---|---|---|
| Line 4: | Line 4: | ||
| [[https://www.raywenderlich.com/4180726-introduction-to-unity-scripting-part-1|Unity Scripting – Part 1]] | [[https://www.raywenderlich.com/4180726-introduction-to-unity-scripting-part-1|Unity Scripting – Part 1]] | ||
| - | === Parametri ==== | + | === Parameters ==== |
| Parameters can be controlled in the editor as long as they are defined as public or serializable variables. | Parameters can be controlled in the editor as long as they are defined as public or serializable variables. | ||
| Line 41: | Line 41: | ||
| </code> | </code> | ||
| - | === Transformari === | + | === Transforms === |
| The transformations of an object can be accessed through the attribute `transform` (https://docs.unity3d.com/ScriptReference/Transform.html) | The transformations of an object can be accessed through the attribute `transform` (https://docs.unity3d.com/ScriptReference/Transform.html) | ||
| Line 94: | Line 94: | ||
| </code> | </code> | ||
| - | === Asteptari/Wait === | + | === Wait === |
| If you want to introduce expectations when running a script / functions you can use custom keys. | If you want to introduce expectations when running a script / functions you can use custom keys. | ||
| Line 113: | Line 113: | ||
| </code> | </code> | ||
| - | === Evenimente de Input Events === | + | === Input Events === |
| To be able to detect if an item has been pressed, the OnMouseDown function can be used | To be able to detect if an item has been pressed, the OnMouseDown function can be used | ||