var VidaPj : int = 100;
static var VidaTotal : int = 100;
var danvida : int = 2.5;
var posicionInicial : Vector3;
var posicionRespawn : GameObject;
function Start () {
posicionInicial = Vector3 (-24,2,0);
}
function OnControllerColliderHit (hit : ControllerColliderHit) {
if(hit.gameObject.tag == "Brazos"){
VidaPj -= danvida;
}
}
if (VidaPj <= 0){
posicionRespawn = transform.position;
VidaPj = VidaTotal;
}
Help.
I receive this error and nose to do. My english is bad.
I hope your answers and thanks