public static void FillWithScene(ref MapRenderSettings ambience, bool duplicateScriptables = false) { //IL_0006: Unknown result type (might be due to invalid IL or missing references) //IL_000b: Unknown result type (might be due to invalid IL or missing references) //IL_006d: Unknown result type (might be due to invalid IL or missing references) //IL_0072: Unknown result type (might be due to invalid IL or missing references) //IL_007e: Unknown result type (might be due to invalid IL or missing references) //IL_0083: Unknown result type (might be due to invalid IL or missing references) //IL_00a1: Unknown result type (might be due to invalid IL or missing references) //IL_00a6: Unknown result type (might be due to invalid IL or missing references) ambience.lightSettings.ambientColor = RenderSettings.get_ambientLight(); Dictionary <Light, SRPLight> s_lights = SRPLight.s_lights; if (s_lights.Count > 1) { Log.Warning("Multiple light in scene, select first one", 64, "C:\\BuildAgents\\AgentB\\work\\cub_client_win64_develop\\client\\DofusCube.Unity\\Assets\\Core\\Code\\Maps\\MapRenderProfile.cs"); } if (s_lights.Count > 0) { Dictionary <Light, SRPLight> .Enumerator enumerator = s_lights.GetEnumerator(); enumerator.MoveNext(); KeyValuePair <Light, SRPLight> current = enumerator.Current; Light key = current.Key; SRPLight value = current.Value; ambience.lightSettings.lightRotation = key.get_transform().get_rotation(); ambience.lightSettings.lightColor = key.get_color(); ambience.lightSettings.lightIntensity = key.get_intensity(); ambience.lightSettings.overrideLightRotation = value.get_overrideDirRotation(); } }