// This function is called when the object is loaded. protected void OnEnable() { modularSystem = (ModularSystem)target; // setup the listener for play state change EditorApplication.playModeStateChanged += OnPlayModeChange; UpdatePartList(); }
// This function is called when the object is loaded. protected void OnEnable() { modularSystem = (ModularSystem)target; UpdatePartList(); }