Пример #1
0
        private void DrawItem(string key, string value)
        {
            EditorGUILayout.Space();

            GUILayout.BeginHorizontal();
            {
                GUILayout.Label(label_key + key, GUILayout.Width(240));

                GUILayout.Label(label_value);

                string variable = value;

                variable = GUILayout.TextField(variable);

                if (GUILayout.Button(label_copy, GUILayout.Width(100)))
                {
                    GUIUtility.systemCopyBuffer = variable;
                }

                if (GUILayout.Button(label_delete, GUILayout.Width(100)))
                {
                    UnityEngine.PlayerPrefs.DeleteKey(key);

                    m_data = PlayerPrefsExtension.GetAll();
                }
            }
            GUILayout.EndHorizontal();
        }
Пример #2
0
 protected override void Init()
 {
     m_data = PlayerPrefsExtension.GetAll();
 }