public void OnApplicationQuit() { if (gameCell.value == null) { FileWrapper.RemoveIfExists(saveFileName); } else { gameCell.value.SaveToJsonFile(saveFileName); } }