http://www.donovankeith.com/2016/05/making-objects-float-up-down-in-unity/
https://docs.unity3d.com/ScriptReference/KeyCode.html
. = dot narrows down an object
{} = curly bracket starts and ends code, groups statements together
Coding Project
Now we are doing a mini project where we all have to make our own bouncy ball that does something different (e.g. changes colour or size every collision).
This is what i have so far:
Advertisements