private void ContinueGame() { Player.instance.gameObject.SetActive(true); CheckPointSave.LoadPlayer(Player.instance.gameObject); //SceneManager.LoadScene(PlayerPrefs.GetInt("SceneIndex")); // LoadSceneMode.Single is the Default // // Make sure it loads Player prefs and works with the checkpoint system }
public void OnTriggerEnter(Collider other) { if (!other.CompareTag("Player")) { return; } CheckPointSave.LoadPlayer(other.gameObject); }
public void LoadCheckpoint() { CheckPointSave.LoadPlayer(gameObject); }