Exemple #1
0
        public override void OnInspectorGUI()
        {
            RuntimeData databaseObject = (RuntimeData)target;

            DrawDefaultInspector();
            if (GUILayout.Button("Load Data from file"))
            {
                databaseObject.LoadData();
            }

            if (GUILayout.Button("Save Data to file"))
            {
                databaseObject.SaveData();
            }
        }