private static void EditKeepShowing(AdventureDataControl adventureData) { // Keep showing texts or change after time EditorGUILayout.LabelField(TC.get("MenuAdventure.KeepShowing"), EditorStyles.boldLabel); EditorGUI.BeginChangeCheck(); var newKeep = EditorGUILayout.Toggle(TC.get("MenuAdventure.KeepText"), adventureData.isKeepShowing(), GUILayout.ExpandWidth(true)); if (EditorGUI.EndChangeCheck()) { adventureData.setKeepShowing(newKeep); } }