I have a jumping script attached to a player. It works until i die and respawn. Any help? i am using javascript
#pragma strict
function Update () {
if(Input.GetKeyUp("space")) {
if(!audio.isPlaying) {
audio.Play();
}
}
}
↧