I come from other programming languages and I am new to Javascript. I am trying to understand what a Javascript code is doing.
I found this line
var guiTouchPos : Vector2 = touch.position - guiTouchOffset;
What kind of declaration is this? What is this line doing? Wouldn't it be easy to write
var guiTouchPos = touch.position - guiTouchOffset;
as I don't see Vector2 being used anywhere in the code?
is the line assigning the subtraction to both variables?
thanks.