private void OnGUI() { if (GUI.Button(new Rect(50, 50, 100, 40), "存档")) { SaveLoadData.SaveGame(); } if (GUI.Button(new Rect(50, 150, 100, 40), "读档")) { SaveLoadData.LoadGame(); } }
void DungeonFinished() { if (!GameState.IsDungeonDone) { CheckFinishStats(); if (TogglePanel.onPanelToggle != null) { TogglePanel.onPanelToggle(2); } GameState.IsDungeonDone = true; _saveData.SaveGame(); } }