public void ResetAndQuit() { IBuildingService buildingService = ServiceLocator.Instance.GetService <IBuildingService>(); buildingService.Clear(); buildingService.Save(); #if UNITY_EDITOR UnityEditor.EditorApplication.isPlaying = false; #else Application.Quit(); #endif }