Why it still need me to add a ";"?

var speed = new Vector2(10,10);

var movement : Vector2;

var weapon : WeaponScript;

int life;

function Start () {
	weapon = gameObject.GetComponent(WeaponScript);
}

function Update () {
	var inputX = Input.GetAxis("Horizontal");
	var inputY = Input.GetAxis("Vertical");

	movement = new Vector2(speed.x * inputX, speed.y * inputY);
		if(Input.GetButtonDown("Fire1")) {
		weapon.Attack();
	}
}

function FixedUpdate() {
	rigidbody2D.velocity = movement;
}

the line “int life;” it need me to add a “;”
why?

you are declaring the in var incorrectly in UnityScript use:

var life:int;