Commit ae3343ec authored by Ben Huber's avatar Ben Huber
Browse files

added low contrast mode

parent 354065a6
......@@ -73,6 +73,6 @@ Material:
- _UVSec: 0
- _ZWrite: 1
m_Colors:
- _Color: {r: 0.11320752, g: 0.11320752, b: 0.11320752, a: 1}
- _Color: {r: 0.46226418, g: 0.46226418, b: 0.46226418, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
m_BuildTextureStacks: []
......@@ -42,6 +42,8 @@ public class EdgeDetect : MonoBehaviour {
int height = -1;
public bool inverting = true;
public bool lowContrast = false;
int previousFlags = 0;
bool isMain = false;
public static float resolutionFactor = 1f;
......@@ -82,6 +84,8 @@ public class EdgeDetect : MonoBehaviour {
edgeCombineMat.SetTexture("_EdgeTex", edgeTexture);
edgeCombineMat.color = outlineColor;
edgeCombineMat.SetFloat("_Inverted", inverting?1:0);
edgeCombineMat.SetFloat("_LowContrast", lowContrast?1:0);
previousFlags = (inverting?1:0) + (lowContrast?2:0);
prevOutlineColor = outlineColor;
depthCapturingCamera.SetReplacementShader(encodedDepthShader, "RenderType");
......@@ -102,6 +106,12 @@ public class EdgeDetect : MonoBehaviour {
normalsCapturingCamera.fieldOfView = depthCapturingCamera.fieldOfView = cam.fieldOfView;
normalsCapturingCamera.farClipPlane = depthCapturingCamera.farClipPlane = cam.farClipPlane;
if (previousFlags != (inverting?1:0) + (lowContrast?2:0)) {
previousFlags = (inverting?1:0) + (lowContrast?2:0);
edgeCombineMat.SetFloat("_Inverted", inverting?1:0);
edgeCombineMat.SetFloat("_LowContrast", lowContrast?1:0);
}
if (prevNormalsSensitivity != normalsSensitivity || prevDepthSensitivity != depthSensitivity || prevDepth2Sensitivity != depthSensitivity2) {
edgeDetectMat.SetVector("_SensitivityAndWidthArgs", new Vector4(normalsSensitivity, depthSensitivity, depthSensitivity2, 0));
prevNormalsSensitivity = normalsSensitivity;
......
......@@ -45,6 +45,7 @@
//float2 _MainTex_TexelSize;
sampler2D _EdgeTex;
float _Inverted;
float _LowContrast;
//float2 _EdgeTex_TexelSize;
/*float3 HSVtoRGB(float3 HSV);
......@@ -121,6 +122,9 @@
weight *= _Color.a;
if (_Inverted > 0.5) {
float4 color = (float4(1,1,1,1) - tex2D(_MainTex, i.uv)) * (1-weight) + weight * _Color;
if (_LowContrast > 0.5) {
color *= min(1,2/(color.r+color.g+color.b));
}
color.a = 1;
return color;
} else {
......
......@@ -6632,6 +6632,7 @@ MonoBehaviour:
volumeNarrationSlider: {fileID: 5378019738200771616}
muteToggle: {fileID: 532893483}
subToggle: {fileID: 348448439}
lowContrastToggle: {fileID: 5752075259368399389}
--- !u!114 &406972110
MonoBehaviour:
m_ObjectHideFlags: 0
......@@ -6658,6 +6659,7 @@ MonoBehaviour:
- {fileID: 3076762809317215877}
- {fileID: 4276639895733858832}
- {fileID: 9192308029512887828}
- {fileID: 7649312958346544870}
engl:
- Settings
- Quit
......@@ -6672,6 +6674,7 @@ MonoBehaviour:
- Narration
- Music
- Settings
- Low Contrast
ger:
- Einstellungen
- Beenden
......@@ -6686,6 +6689,7 @@ MonoBehaviour:
- "Erz\xE4hlung"
- Musik
- Einstellungen
- Kontrastarm
--- !u!1 &626715211
GameObject:
m_ObjectHideFlags: 0
......@@ -19247,6 +19251,7 @@ RectTransform:
- {fileID: 1134780764}
- {fileID: 4223442830738841501}
- {fileID: 742841825815576929}
- {fileID: 4400825437517327613}
m_Father: {fileID: 2728043712313227119}
m_RootOrder: 4
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
......@@ -21906,6 +21911,140 @@ MonoBehaviour:
m_ChildScaleWidth: 0
m_ChildScaleHeight: 0
m_ReverseArrangement: 0
--- !u!1 &771723050961753583
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 4400825437517327613}
- component: {fileID: 2169512682395645771}
- component: {fileID: 7649312958346544870}
m_Layer: 5
m_Name: LowContrastLabel
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &4400825437517327613
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 771723050961753583}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 1876964523}
m_RootOrder: 7
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: -21.2437, y: -80.6443}
m_SizeDelta: {x: 226.3126, y: 50.7114}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &2169512682395645771
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 771723050961753583}
m_CullTransparentMesh: 1
--- !u!114 &7649312958346544870
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 771723050961753583}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_text: Low Contrast
m_isRightToLeft: 0
m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
m_fontSharedMaterials: []
m_fontMaterial: {fileID: 0}
m_fontMaterials: []
m_fontColor32:
serializedVersion: 2
rgba: 4278190080
m_fontColor: {r: 0, g: 0, b: 0, a: 1}
m_enableVertexGradient: 0
m_colorMode: 3
m_fontColorGradient:
topLeft: {r: 1, g: 1, b: 1, a: 1}
topRight: {r: 1, g: 1, b: 1, a: 1}
bottomLeft: {r: 1, g: 1, b: 1, a: 1}
bottomRight: {r: 1, g: 1, b: 1, a: 1}
m_fontColorGradientPreset: {fileID: 0}
m_spriteAsset: {fileID: 0}
m_tintAllSprites: 0
m_StyleSheet: {fileID: 0}
m_TextStyleHashCode: -1183493901
m_overrideHtmlColors: 0
m_faceColor:
serializedVersion: 2
rgba: 4294967295
m_fontSize: 36
m_fontSizeBase: 36
m_fontWeight: 400
m_enableAutoSizing: 0
m_fontSizeMin: 18
m_fontSizeMax: 72
m_fontStyle: 0
m_HorizontalAlignment: 1
m_VerticalAlignment: 256
m_textAlignment: 65535
m_characterSpacing: 0
m_wordSpacing: 0
m_lineSpacing: 0
m_lineSpacingMax: 0
m_paragraphSpacing: 0
m_charWidthMaxAdj: 0
m_enableWordWrapping: 1
m_wordWrappingRatios: 0.4
m_overflowMode: 0
m_linkedTextComponent: {fileID: 0}
parentLinkedComponent: {fileID: 0}
m_enableKerning: 1
m_enableExtraPadding: 0
checkPaddingRequired: 0
m_isRichText: 1
m_parseCtrlCharacters: 1
m_isOrthographic: 1
m_isCullingEnabled: 0
m_horizontalMapping: 0
m_verticalMapping: 0
m_uvLineOffset: 0
m_geometrySortingOrder: 0
m_IsTextObjectScaleStatic: 0
m_VertexBufferAutoSizeReduction: 1
m_useMaxVisibleDescender: 1
m_pageToDisplay: 1
m_margin: {x: 0, y: 0, z: 2.134461, w: 0}
m_isUsingLegacyAnimationComponent: 0
m_isVolumetricText: 0
m_hasFontAssetChanged: 0
m_baseMaterial: {fileID: 0}
m_maskOffset: {x: 0, y: 0, z: 0, w: 0}
--- !u!1 &997092920049124938
GameObject:
m_ObjectHideFlags: 0
......@@ -24316,6 +24455,104 @@ MonoBehaviour:
m_FillOrigin: 0
m_UseSpriteMesh: 0
m_PixelsPerUnitMultiplier: 1
--- !u!1 &3628237156998474397
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 2379075481587176429}
- component: {fileID: 5752075259368399389}
m_Layer: 5
m_Name: ToggleLowContrast
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &2379075481587176429
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3628237156998474397}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:
- {fileID: 4681419169727563879}
- {fileID: 6526408801547860663}
m_Father: {fileID: 2728043712313227119}
m_RootOrder: 8
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 184, y: -75}
m_SizeDelta: {x: 173.3414, y: 29.9}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &5752075259368399389
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3628237156998474397}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 9085046f02f69544eb97fd06b6048fe2, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Navigation:
m_Mode: 3
m_WrapAround: 0
m_SelectOnUp: {fileID: 0}
m_SelectOnDown: {fileID: 0}
m_SelectOnLeft: {fileID: 0}
m_SelectOnRight: {fileID: 0}
m_Transition: 1
m_Colors:
m_NormalColor: {r: 0.8301887, g: 0.8301887, b: 0.8301887, a: 1}
m_HighlightedColor: {r: 0, g: 1, b: 0.9023998, a: 1}
m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1}
m_SelectedColor: {r: 0, g: 1, b: 0.9023998, a: 1}
m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608}
m_ColorMultiplier: 1
m_FadeDuration: 0.1
m_SpriteState:
m_HighlightedSprite: {fileID: 0}
m_PressedSprite: {fileID: 0}
m_SelectedSprite: {fileID: 0}
m_DisabledSprite: {fileID: 0}
m_AnimationTriggers:
m_NormalTrigger: Normal
m_HighlightedTrigger: Highlighted
m_PressedTrigger: Pressed
m_SelectedTrigger: Selected
m_DisabledTrigger: Disabled
m_Interactable: 1
m_TargetGraphic: {fileID: 5885209284907208459}
toggleTransition: 1
graphic: {fileID: 7890462306006915693}
m_Group: {fileID: 0}
onValueChanged:
m_PersistentCalls:
m_Calls:
- m_Target: {fileID: 621499252}
m_TargetAssemblyTypeName: Menu, Assembly-CSharp
m_MethodName: SetLowContrast
m_Mode: 0
m_Arguments:
m_ObjectArgument: {fileID: 0}
m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine
m_IntArgument: 0
m_FloatArgument: 0
m_StringArgument:
m_BoolArgument: 0
m_CallState: 2
m_IsOn: 1
--- !u!1 &3703343196706012561
GameObject:
m_ObjectHideFlags: 0
......@@ -26333,6 +26570,81 @@ MonoBehaviour:
m_hasFontAssetChanged: 0
m_baseMaterial: {fileID: 0}
m_maskOffset: {x: 0, y: 0, z: 0, w: 0}
--- !u!1 &5708813141272529300
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 2020616325014007434}
- component: {fileID: 491466895617023726}
- component: {fileID: 7890462306006915693}
m_Layer: 5
m_Name: Checkmark
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &2020616325014007434
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5708813141272529300}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 4681419169727563879}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 0.497, y: 0.497}
m_SizeDelta: {x: 26.8377, y: 26.8377}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &491466895617023726
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5708813141272529300}
m_CullTransparentMesh: 1
--- !u!114 &7890462306006915693
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5708813141272529300}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_Sprite: {fileID: 10901, guid: 0000000000000000f000000000000000, type: 0}
m_Type: 0
m_PreserveAspect: 0
m_FillCenter: 1
m_FillMethod: 4
m_FillAmount: 1
m_FillClockwise: 1
m_FillOrigin: 0
m_UseSpriteMesh: 0
m_PixelsPerUnitMultiplier: 1
--- !u!1 &5905921303615722073
GameObject:
m_ObjectHideFlags: 0
......@@ -28173,6 +28485,7 @@ RectTransform:
- {fileID: 532893482}
- {fileID: 348448438}
- {fileID: 1761282739}
- {fileID: 2379075481587176429}
m_Father: {fileID: 849351432}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
......@@ -29633,7 +29946,7 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 0.8509804}
m_Color: {r: 0.5471698, g: 0.5471698, b: 0.5471698, a: 0.8509804}
m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
......@@ -30373,6 +30686,85 @@ MonoBehaviour:
m_FillOrigin: 0
m_UseSpriteMesh: 0
m_PixelsPerUnitMultiplier: 1
--- !u!1 &8770218499396491316
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 6526408801547860663}
- component: {fileID: 5393928692488282886}
- component: {fileID: 173300536416589458}
m_Layer: 5
m_Name: Label
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 0
--- !u!224 &6526408801547860663
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8770218499396491316}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 2379075481587176429}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 9, y: -0.5}
m_SizeDelta: {x: -28, y: -3}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &5393928692488282886
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8770218499396491316}
m_CullTransparentMesh: 1
--- !u!114 &173300536416589458
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8770218499396491316}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1}
m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_FontData:
m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
m_FontSize: 14
m_FontStyle: 0
m_BestFit: 0
m_MinSize: 10
m_MaxSize: 40
m_Alignment: 0
m_AlignByGeometry: 0
m_RichText: 1
m_HorizontalOverflow: 0
m_VerticalOverflow: 0
m_LineSpacing: 1
m_Text: Toggle
--- !u!1 &8818083807513415056
GameObject:
m_ObjectHideFlags: 0
......@@ -30500,6 +30892,82 @@ RectTransform:
m_AnchoredPosition: {x: -5.0000076, y: 0}
m_SizeDelta: {x: -20, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!1 &8869674110204975656
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 4681419169727563879}
- component: {fileID: 4668836952110904851}
- component: {fileID: 5885209284907208459}
m_Layer: 5
m_Name: Background
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &4681419169727563879
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8869674110204975656}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:
- {fileID: 2020616325014007434}
m_Father: {fileID: 2379075481587176429}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 13.916, y: -13.9155}
m_SizeDelta: {x: 27.831, y: 27.8311}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &4668836952110904851
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8869674110204975656}
m_CullTransparentMesh: 1
--- !u!114 &5885209284907208459
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8869674110204975656}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_Sprite: {fileID: 0}
m_Type: 1
m_PreserveAspect: 0
m_FillCenter: 1
m_FillMethod: 4
m_FillAmount: 1
m_FillClockwise: 1
m_FillOrigin: 0
m_UseSpriteMesh: 0
m_PixelsPerUnitMultiplier: 1
--- !u!1 &8885293686890312445
GameObject:
m_ObjectHideFlags: 0
......
......@@ -24,18 +24,24 @@ public class Menu : MonoBehaviour
musicVolume = PlayerPrefs.GetFloat("musicVolume", .5f);
volumeMusicSlider.value=musicVolume;
SetVolumeMusic(musicVolume);
narrationVolume = PlayerPrefs.GetFloat("narrationVolume", .8f);
volumeNarrationSlider.value=narrationVolume;
muted = PlayerPrefs.GetInt("muted", 0)==1;
muteToggle.isOn = muted;
SetMuted(muted);
if (Music.instance) Music.instance.auds.volume = muted ? 0f : musicVolume;
sub = PlayerPrefs.GetInt("sub", 1) == 1;
subToggle.isOn = sub;
lowContrast = PlayerPrefs.GetInt("lowContrast", 0) == 1;
lowContrastToggle.isOn = lowContrast;
SetLowContrast(lowContrast);
flipGamepadY = PlayerPrefs.GetInt("flipGamepadY", 0) == 1;
flipGamepadToggle.isOn = flipGamepadY;