I made a class like this.
jsA.js
class A
{
var a : int;
…
}
jsB.js
class B
{
var arr : List.;
function Start()
{
arr = new List.
}
function AddThings(newThing : A)
{
arr.Add(A);
}
}
It shows an error "… Add(A)’ is not compatible with the argument list ‘(System.Type)’
How can I declare or add type to an List or array?
Thanks