{
//we’re hit! Spin our character around
transform.Rotate(0,tumbleSpeed * Time.deltaTime,0, Space.World);
tumbleSpeed = tumbleSpeed-decreaseTime;
decreaseTime += decayTime;
}
}
function (hit : ControllerColliderHit) //onTriggerEnter : collider
{
if(hit.gameObject.tag == "fallout");
{
dead = true; //the error is on this line, please help!
//subtract life here
HealthControl.LIVES -= 1;
}
if(hit.gameObject.tag == "enemyProjectile")
{
gotHit = true;
}
}