void OnEnable() { m_LastGrowthTime = MarsTime.Time; MarsTime.MarsUpdate += OnMarsUpdate; m_PreviousExtentsDebug = MarsDebugSettings.SimDiscoveryModulePlaneExtentsDebug; m_PreviousVerticesDebug = MarsDebugSettings.SimDiscoveryModulePlaneVerticesDebug; m_PointCloudProvider = GetComponent <SimulatedDiscoveryPointCloudProvider>(); m_PointCloudProvider.PointCloudUpdated += OnPointCloudUpdated; EditorOnlyEvents.onEnvironmentSetup += SetupFromEnvironment; if (EditorOnlyDelegates.IsEnvironmentSetup != null && EditorOnlyDelegates.IsEnvironmentSetup()) { SetupFromEnvironment(); } m_ProvidesSessionControl = m_SessionProvider; }
void OnEnable() { EditorOnlyEvents.onTemporalSimulationStart += OnTemporalSimulationStart; m_ProvidesSessionControl = m_SessionProvider; }