SaveGame() публичный статический Метод

public static SaveGame ( int index ) : void
index int
Результат void
Пример #1
0
    public void SaveAndReturn()
    {
        menuSave.SetActive(false);

        SaveHandler save = GameObject.FindGameObjectWithTag("Saver").GetComponent <SaveHandler>();

        save.SaveGame();

        SetInteractable(true);
    }
Пример #2
0
 public void addDosis(float dosis)
 {
     maxDosis    = map.width * map.height * 65;
     this.dosis += dosis;
     if (this.dosis >= maxDosis)
     {
         MapGenerator m = GetComponent <MapGenerator>();
         SaveHandler.SaveGame(MapGenerator.saveid, m.width, m.height, m.cells);
         DialogHandler.OpenDialogScene(TreatmentFinishedSprites, () => UnityEngine.SceneManagement.SceneManager.LoadScene("Menu"), 3000, false);
     }
 }
Пример #3
0
    public void Save()
    {
        menuSave.SetActive(false);

        GameObject  go   = GameObject.FindGameObjectWithTag("Saver");
        SaveHandler save = go.GetComponent <SaveHandler>();

        save.SaveGame();

        SetInteractable(true);

        GameObject.Destroy(go);
        SceneManager.LoadScene("MenuPrincipal", LoadSceneMode.Single);
    }
Пример #4
0
 public void SaveGame()
 {
     SaveHandler.SaveGame("wantuhy");
 }