public void OnDisable() { s_Instance = null; ModuleLoaderCore.instance.ModulesLoaded -= TryGetModules; ToolManager.activeToolChanged -= OnActiveToolChanged; SceneView.duringSceneGui -= OnSceneGUI; Selection.selectionChanged -= OnSelectionChanged; EditorOnlyEvents.onSimulationStart -= OnSimulationStart; }
void Awake() { s_Instance = this; }