public override void OnActivate(string searchContext, VisualElement rootElement) { base.OnActivate(searchContext, rootElement); var evaluationSchedulerModule = EvaluationSchedulerModule.instance; m_EvaluationScheduleModuleObject = new SerializedObject(evaluationSchedulerModule); m_EvaluationSchedulerModuleDrawer = new EvaluationSchedulerModuleDrawer(m_EvaluationScheduleModuleObject); var reasoningModule = ReasoningModule.instance; m_ReasoningModuleObject = new SerializedObject(reasoningModule); m_ReasoningModuleDrawer = new ReasoningModuleDrawer(m_ReasoningModuleObject); var geoLocationModule = GeoLocationModule.instance; m_GeoLocationModuleObject = new SerializedObject(geoLocationModule); m_GeoLocationModuleRuntimeDrawer = new GeoLocationModuleRuntimeDrawer(m_GeoLocationModuleObject); }
void OnEnable() { m_ReasoningModuleDrawer = new ReasoningModuleDrawer(serializedObject); }