Beispiel #1
0
 public static Player GetInstance()
 {
     if (Instance == null)
     {
         Instance = new Player();
         SaveLoadGame.LoadGame();
     }
     return(Instance);
 }
Beispiel #2
0
    private void Start()
    {
        timerCheck = 0.11f;

        if (PlayerPrefs.HasKey("Load") && PlayerPrefs.GetInt("Load") == 1)
        {
            if (Ini.FileExists("Save.sv"))
            {
                Saving.LoadGame();
                StartGame();
            }
        }
    }
 public void Continue() => svGame.LoadGame();