Exemple #1
0
 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
 }
Exemple #2
0
    public void OnTriggerEnter(Collider other)
    {
        if (!other.CompareTag("Player"))
        {
            return;
        }

        CheckPointSave.LoadPlayer(other.gameObject);
    }
Exemple #3
0
 public void LoadCheckpoint()
 {
     CheckPointSave.LoadPlayer(gameObject);
 }