private void onOverrideStateDataAdded(IglooCameraOverrideStateData overrideData)
 {
     iglooCameraOverrideData = overrideData;
     iglooCameraOverrideData.OverrideStateUpdated          += onOverrideStateUpdated;
     iglooCameraOverrideData.OverrideToLightingRailUpdated += onOverrideToLightingRailUpdated;
     onOverrideStateUpdated(iglooCameraOverrideData.OverrideState);
 }
 protected override void OnEnable()
 {
     base.OnEnable();
     if (!dataEntityCollection.TryGetComponent(sceneDataHandle, out iglooLotCameraStateData))
     {
         iglooLotCameraStateData = dataEntityCollection.AddComponent <IglooCameraOverrideStateData>(sceneDataHandle);
     }
 }
 private void onOverrideStateDataRemoved(IglooCameraOverrideStateData overrideData)
 {
     iglooCameraOverrideData.OverrideStateUpdated          -= onOverrideStateUpdated;
     iglooCameraOverrideData.OverrideToLightingRailUpdated -= onOverrideToLightingRailUpdated;
     iglooCameraOverrideData = null;
     if (sceneStateData != null)
     {
         onSceneStateDataChanged(sceneStateData.State);
     }
 }
 protected override void OnEnable()
 {
     base.OnEnable();
     sceneDataHandle = dataEntityCollection.FindEntityByName("ActiveSceneData");
     if (!dataEntityCollection.TryGetComponent <IglooCameraOverrideStateData>(sceneDataHandle, out iglooLightingCameraStateData))
     {
         iglooLightingCameraStateData = dataEntityCollection.AddComponent <IglooCameraOverrideStateData>(sceneDataHandle);
     }
     iglooLightingCameraStateData.OverrideToLightingRail = true;
 }