var respawnHeight : float = 50;
function FixedUpdate() {
if (transform.position.z < -10) {
RestartLevel();
}
}
If my character falls off, it respawn.
but Unity 5 says there is an Error in Sentence 1 that the “:” shouln’d be there…
help