// Attempts to load a game and warns player if it isn't successful private GameData LoadGame(bool isContinuation) { GameData gameData = persistenceController.LoadGame(isContinuation ? null : PlayerPrefs.GetString("CurrentFile")); if (gameData == null) { warningType = isContinuation ? SaveLoadType.CONTINUATION_LOAD : SaveLoadType.PLAYER_LOAD; OpenWarningDialogue(); return(null); } else { return(gameData); } }