public void GoBackToEditor(bool force = false) { int saveDistance = evolution.CurrentGenerationNumber - evolution.LastSavedGeneration; if (force || saveDistance <= EXIT_CONFIRMATION_SAVE_DISTANCE) { evolution.Finish(); SceneController.LoadSync(SceneController.Scene.Editor); return; } exitConfirmationPopup.Show(delegate() { evolution.Finish(); SceneController.LoadSync(SceneController.Scene.Editor); }, delegate() { exitConfirmationPopup.Close(); }); }