Hi! Im doing one platform game, when the player falls under 0.5 y I need restart the level, How I can do it?
Thanks!
Hi! Im doing one platform game, when the player falls under 0.5 y I need restart the level, How I can do it?
Thanks!
if (player.transform.position.y < 0.5f){
Application.LoadLevel(“levelName”);
}
thanks friend!