// Check if game state is valid for saving / loading private bool ValidGameState() { if (filenameText.text == "") { Debug.Log("Cannot load/save: Filename cannot be empty"); return(false); } if (filenameText.text == reservedFilename) { Debug.Log("Cannot load/save: Filename is reserved"); return(false); } if (simulationControl.SimInProgress()) { Debug.Log("Cannot load/save: Simulation in progress"); return(false); } return(true); }