I come from other programming languages ββand I am new to Unityscript. I am trying to understand what Unityscript code does.
I found this line
var guiTouchPos : Vector2 = touch.position - guiTouchOffset;
What is this declaration? What does this line do? It would not be easy to write
var guiTouchPos = touch.position - guiTouchOffset;
since I don't see Vector2 being used anywhere in the code?
Is this a string that assigns subtraction to both variables?
thank.
source
share