I am trying to make a simple game, when my player die or fall from something the player will respawn at his last position. right now i am using this script but my player respawn at from the start
using UnityEngine;
using System.Collections;
public class Cave_reset : MonoBehaviour {
void OnTriggerEnter(Collider other)
{
Application.LoadLevel("Cave");
}
}