public override void OnInspectorGUI() { MicrogameCollection collection = (MicrogameCollection)target; if (GUILayout.Button("Update Microgames")) { collection.updateMicrogames(); } DrawDefaultInspector(); }
private void OnEnable() { collection = (MicrogameCollection)target; setMicrogames(); }