Exemplo n.º 1
0
        private void WipeSave()
        {
            SaveMaster.DeleteSave();
            displayText.text = "Wiped save, created new save at slot 0";
            lastestSpeed     = 0;

            SaveMaster.SetSlot(0, true);
        }
Exemplo n.º 2
0
        public void SaveSlot(int slot) {
            SaveMaster.DeleteSave(slot);
            Debug.Log("Saving");
            SaveMaster.SetSlot(slot, false);
            SaveMaster.WriteActiveSaveToDisk();     //write save to disk

            Text txt = GetComponentInChildren<Text>(true);
            txt.fontSize = 13;
            txt.alignment = TextAnchor.UpperRight;
            DateTime timeSaved = SaveMaster.GetSaveCreationTime(slot);
            txt.text = timeSaved.ToString("dd MMMM yyyy hh:mm:ss tt");
        }
Exemplo n.º 3
0
    private void Update()
    {
        /*if(Input.GetKeyDown(KeyCode.L))
         * {
         *  SaveMaster.SetSlot(0, false);
         *  SaveMaster.SetString("scene", gameObject.scene.name);
         *  SaveMaster.WriteActiveSaveToDisk();
         *  Debug.Log("Saved");
         * }*/

        if (Input.GetKeyDown(KeyCode.L))
        {
            SaveMaster.DeleteSave(0);
        }
    }
Exemplo n.º 4
0
 public void NewGameButton()
 {
     SaveMaster.DeleteSave(0);
     SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex + 1);
 }