Vector2 array ?

HI guys I need to make Vector2 Array of each mouse position every 0.5 sec.

` var MousePos : Vector2;

function Start(){


function CheckMousePos()
//What here

So I will have Vector2 array which will store every mouse pos 0.5s.

An ArrayList is not a generic List.

#pragma strict
import System.Collections.Generic;

var positions : List.<Vector2> = new List.<Vector2>();

function Start(){ 
	InvokeRepeating("CheckMousePos", 0,0.5);

function CheckMousePos() { 

For future posts, please format your code. After pasting, select your code and use the 101/010 button.