示例#1
0
 public void saveGame()
 {
     safeClass.Start();
     safeClass.Save();
     allItems.SaveStolenItems();
     SavedGame(safeClass);
     tempLoad = Load();
 }
示例#2
0
 public void loading()
 {
     safeClass = tempLoad;
     safeClass.Start();
     safeClass.played();
     safeClass.Load();
     allItems.LoadItems();
 }
示例#3
0
    void Start()
    {
        safeClass = new SaveClass();
        if (File.Exists(Application.dataPath + "/SavedGame.xml"))
        {
            tempLoad = Load();
        }
        else
        {
            tempLoad = new SaveClass();
        }


        tempLoad.played();
        safeClass.Start();
    }