hi. i’m trying make a counter that when depleted will make the character respawn but have no idea where to start. could someone please help?
Something like this should work:
var respawnTime : float; //enter respawn time in the inspector
function Update(){
respawnTime -= Time.deltaTime;
if (respawnTime <= 0){
//respawn code here
}
}