function newtext(ta, tb)
{
var texta = ta;
var textb = tb;
};
the types for both the arguments and the local variables are undeclared. Try explicitly declaring the type of either one of those, such as:
function newtext(ta : Vector2, tb : Vector2)
{
var texta = ta;
var textb = tb;
};
Also, if you call Debug.Log with two arguments, the second one needs to be an Object that Unity can draw a connection to in the Editor, which probably means something in the Hierarchy or Project views.