private void SaveGUI() { GUILayout.FlexibleSpace(); GUILayout.BeginHorizontal(); GUILayout.FlexibleSpace(); if (GUILayout.Button("Save", GUILayout.Width(120))) { if (modifyPassword) { ShowNotification(new GUIContent("Please save the password first!")); return; } URCSettingData.SaveConfig(config); AssetDatabase.Refresh(); ShowNotification(new GUIContent("Save Success!")); } GUILayout.EndHorizontal(); GUILayout.Space(8); }
private void Init() { config = URCSettingData.GetCofig(); modifyPassword = false; }