diff --git a/Assets/Prefabs/UI.prefab b/Assets/Prefabs/UI.prefab index e880894..e8b05e5 100644 --- a/Assets/Prefabs/UI.prefab +++ b/Assets/Prefabs/UI.prefab @@ -260,6 +260,8 @@ GameObject: - component: {fileID: 114474847320342008} - component: {fileID: 114289704439636748} - component: {fileID: 114357770329230070} + - component: {fileID: 114056294736790042} + - component: {fileID: 114768702460390076} m_Layer: 5 m_Name: MessagePanel m_TagString: Untagged @@ -362,6 +364,7 @@ GameObject: - component: {fileID: 114395085421692120} - component: {fileID: 114700265308343224} - component: {fileID: 114325107130871454} + - component: {fileID: 114935065996460616} m_Layer: 5 m_Name: MessageText m_TagString: Untagged @@ -552,7 +555,7 @@ MonoBehaviour: m_Transition: 1 m_Colors: m_NormalColor: {r: 1, g: 1, b: 1, a: 1} - m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} + m_HighlightedColor: {r: 0.7075472, g: 0.7075472, b: 0.7075472, a: 1} m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1} m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608} m_ColorMultiplier: 1 @@ -636,6 +639,19 @@ MonoBehaviour: m_CallState: 2 m_TypeName: UnityEngine.UI.Button+ButtonClickedEvent, UnityEngine.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null +--- !u!114 &114056294736790042 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 1738841749900334} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 1741964061, guid: f70555f144d8491a825f0804e09c671c, type: 3} + m_Name: + m_EditorClassIdentifier: + m_HorizontalFit: 2 + m_VerticalFit: 0 --- !u!114 &114060586777901180 MonoBehaviour: m_ObjectHideFlags: 1 @@ -753,11 +769,11 @@ MonoBehaviour: m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null m_FontData: - m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} - m_FontSize: 17 + m_Font: {fileID: 12800000, guid: 12f77943eccfc5e47ae5cdb66e214d9f, type: 3} + m_FontSize: 20 m_FontStyle: 0 m_BestFit: 0 - m_MinSize: 1 + m_MinSize: 0 m_MaxSize: 40 m_Alignment: 4 m_AlignByGeometry: 0 @@ -849,14 +865,14 @@ MonoBehaviour: m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null m_FontData: - m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} - m_FontSize: 40 - m_FontStyle: 1 - m_BestFit: 0 + m_Font: {fileID: 12800000, guid: 3823bf7b0b0a6aa4b8d23a5aa57a18d5, type: 3} + m_FontSize: 80 + m_FontStyle: 0 + m_BestFit: 1 m_MinSize: 4 - m_MaxSize: 40 + m_MaxSize: 80 m_Alignment: 4 - m_AlignByGeometry: 0 + m_AlignByGeometry: 1 m_RichText: 1 m_HorizontalOverflow: 1 m_VerticalOverflow: 1 @@ -895,7 +911,7 @@ MonoBehaviour: m_Transition: 1 m_Colors: m_NormalColor: {r: 1, g: 1, b: 1, a: 1} - m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} + m_HighlightedColor: {r: 0.8018868, g: 0.8018868, b: 0.8018868, a: 1} m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1} m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608} m_ColorMultiplier: 1 @@ -1147,10 +1163,10 @@ MonoBehaviour: m_FillRect: {fileID: 224030602021903918} m_HandleRect: {fileID: 224899125652206328} m_Direction: 0 - m_MinValue: 0 - m_MaxValue: 100 + m_MinValue: -60 + m_MaxValue: 20 m_WholeNumbers: 0 - m_Value: 70 + m_Value: 0 m_OnValueChanged: m_PersistentCalls: m_Calls: @@ -1198,8 +1214,8 @@ MonoBehaviour: m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null m_FontData: - m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} - m_FontSize: 30 + m_Font: {fileID: 12800000, guid: 12f77943eccfc5e47ae5cdb66e214d9f, type: 3} + m_FontSize: 35 m_FontStyle: 1 m_BestFit: 0 m_MinSize: 3 @@ -1245,11 +1261,11 @@ MonoBehaviour: m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null m_FontData: - m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} - m_FontSize: 14 + m_Font: {fileID: 12800000, guid: 12f77943eccfc5e47ae5cdb66e214d9f, type: 3} + m_FontSize: 20 m_FontStyle: 1 m_BestFit: 0 - m_MinSize: 10 + m_MinSize: 2 m_MaxSize: 40 m_Alignment: 4 m_AlignByGeometry: 0 @@ -1364,15 +1380,15 @@ MonoBehaviour: m_Name: m_EditorClassIdentifier: m_Material: {fileID: 0} - m_Color: {r: 1, g: 0.3726415, b: 0.3726415, a: 0.392} + m_Color: {r: 0.8113208, g: 0.8113208, b: 0.8113208, a: 1} m_RaycastTarget: 1 m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_Sprite: {fileID: 10907, guid: 0000000000000000f000000000000000, type: 0} - m_Type: 1 + m_Sprite: {fileID: 21300000, guid: 106ee2c5b569c9a4489a53f7c09ec01d, type: 3} + m_Type: 0 m_PreserveAspect: 0 m_FillCenter: 1 m_FillMethod: 4 @@ -1406,6 +1422,28 @@ MonoBehaviour: m_FillAmount: 1 m_FillClockwise: 1 m_FillOrigin: 0 +--- !u!114 &114768702460390076 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 1738841749900334} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: -405508275, guid: f70555f144d8491a825f0804e09c671c, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Padding: + m_Left: 10 + m_Right: 10 + m_Top: 10 + m_Bottom: 10 + m_ChildAlignment: 4 + m_Spacing: 10 + m_ChildForceExpandWidth: 1 + m_ChildForceExpandHeight: 1 + m_ChildControlWidth: 1 + m_ChildControlHeight: 1 --- !u!114 &114829834214915798 MonoBehaviour: m_ObjectHideFlags: 1 @@ -1471,6 +1509,19 @@ MonoBehaviour: m_FallbackScreenDPI: 96 m_DefaultSpriteDPI: 96 m_DynamicPixelsPerUnit: 1 +--- !u!114 &114935065996460616 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 1783803660317794} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 1741964061, guid: f70555f144d8491a825f0804e09c671c, type: 3} + m_Name: + m_EditorClassIdentifier: + m_HorizontalFit: 2 + m_VerticalFit: 0 --- !u!114 &114956533738794260 MonoBehaviour: m_ObjectHideFlags: 1 @@ -1491,14 +1542,14 @@ MonoBehaviour: m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null m_FontData: - m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} - m_FontSize: 40 - m_FontStyle: 1 - m_BestFit: 0 + m_Font: {fileID: 12800000, guid: 3823bf7b0b0a6aa4b8d23a5aa57a18d5, type: 3} + m_FontSize: 80 + m_FontStyle: 0 + m_BestFit: 1 m_MinSize: 4 - m_MaxSize: 40 + m_MaxSize: 80 m_Alignment: 4 - m_AlignByGeometry: 0 + m_AlignByGeometry: 1 m_RichText: 1 m_HorizontalOverflow: 1 m_VerticalOverflow: 1 @@ -1524,12 +1575,12 @@ MonoBehaviour: m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null m_FontData: - m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} - m_FontSize: 40 - m_FontStyle: 1 + m_Font: {fileID: 12800000, guid: 3823bf7b0b0a6aa4b8d23a5aa57a18d5, type: 3} + m_FontSize: 250 + m_FontStyle: 0 m_BestFit: 0 - m_MinSize: 4 - m_MaxSize: 40 + m_MinSize: 0 + m_MaxSize: 300 m_Alignment: 4 m_AlignByGeometry: 0 m_RichText: 1 @@ -1776,15 +1827,15 @@ RectTransform: m_GameObject: {fileID: 1160732466323946} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 0.4, y: 0.4, z: 1} + m_LocalScale: {x: 0.3, y: 0.3, z: 1} m_Children: [] m_Father: {fileID: 224827547678119310} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} + m_AnchoredPosition: {x: 0.97, y: -0} + m_SizeDelta: {x: 194.2, y: 21.3} m_Pivot: {x: 0.5, y: 0.5} --- !u!224 &224075842277440546 RectTransform: @@ -1819,8 +1870,8 @@ RectTransform: m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} + m_AnchoredPosition: {x: 0.8, y: -0.23} + m_SizeDelta: {x: 196.21, y: 18.18} m_Pivot: {x: 0.5, y: 0.5} --- !u!224 &224138068996382362 RectTransform: @@ -1853,10 +1904,10 @@ RectTransform: m_Father: {fileID: 224035875368067210} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 39.513885, y: 0} - m_SizeDelta: {x: 0, y: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 0, y: 1} + m_AnchoredPosition: {x: 38.545288, y: -25} + m_SizeDelta: {x: 0, y: 30} m_Pivot: {x: 0.5, y: 0.5} --- !u!224 &224218339018349506 RectTransform: @@ -1870,12 +1921,12 @@ RectTransform: m_Children: - {fileID: 224104588010532506} m_Father: {fileID: 224484966753135898} - m_RootOrder: 2 + m_RootOrder: 1 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0.5, y: 1} - m_AnchorMax: {x: 0.5, y: 1} - m_AnchoredPosition: {x: 0, y: -235.94} - m_SizeDelta: {x: 160, y: 40} + m_AnchorMin: {x: 0.5, y: 0.5} + m_AnchorMax: {x: 0.5, y: 0.5} + m_AnchoredPosition: {x: 0.000012398, y: -156.9} + m_SizeDelta: {x: 254.9, y: 63.8} m_Pivot: {x: 0.5, y: 0.5} --- !u!224 &224351136746992674 RectTransform: @@ -1924,8 +1975,8 @@ RectTransform: m_LocalScale: {x: 1, y: 1, z: 1} m_Children: - {fileID: 224539401731723566} - - {fileID: 224827547678119310} - {fileID: 224218339018349506} + - {fileID: 224827547678119310} m_Father: {fileID: 224011665836974194} m_RootOrder: 4 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} @@ -1963,15 +2014,15 @@ RectTransform: m_GameObject: {fileID: 1491047117667172} 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_LocalScale: {x: 0.4, y: 0.3, z: 1} m_Children: [] m_Father: {fileID: 224484966753135898} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0.5, y: 1} - m_AnchorMax: {x: 0.5, y: 1} - m_AnchoredPosition: {x: 0, y: -94.8} - m_SizeDelta: {x: 160, y: 30} + m_AnchorMin: {x: 0.5, y: 0.5} + m_AnchorMax: {x: 0.5, y: 0.5} + m_AnchoredPosition: {x: 1.100029, y: 84.00001} + m_SizeDelta: {x: 873.6, y: 295} m_Pivot: {x: 0.5, y: 0.5} --- !u!224 &224578694025659052 RectTransform: @@ -2120,12 +2171,12 @@ RectTransform: m_Children: - {fileID: 224071502787034986} m_Father: {fileID: 224484966753135898} - m_RootOrder: 1 + m_RootOrder: 2 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0.5, y: 1} - m_AnchorMax: {x: 0.5, y: 1} - m_AnchoredPosition: {x: 0, y: -167.24} - m_SizeDelta: {x: 160, y: 40} + m_AnchorMin: {x: 0.5, y: 0.5} + m_AnchorMax: {x: 0.5, y: 0.5} + m_AnchoredPosition: {x: 0.0000061989, y: -73.8} + m_SizeDelta: {x: 272.7, y: 68.2} m_Pivot: {x: 0.5, y: 0.5} --- !u!224 &224833383346886274 RectTransform: diff --git a/Assets/Scenes/CodeDEV.unity b/Assets/Scenes/CodeDEV.unity index c61063d..9d0ffe0 100644 --- a/Assets/Scenes/CodeDEV.unity +++ b/Assets/Scenes/CodeDEV.unity @@ -519,24 +519,6 @@ AudioSource: m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 ---- !u!1 &679787156 stripped -GameObject: - m_PrefabParentObject: {fileID: 1783803660317794, guid: 460d856ea4eb14cedb5fecde1fe6d743, - type: 2} - m_PrefabInternal: {fileID: 1379476068} ---- !u!114 &679787158 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 679787156} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 1741964061, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_HorizontalFit: 2 - m_VerticalFit: 0 --- !u!1 &734498091 GameObject: m_ObjectHideFlags: 0 @@ -1440,328 +1422,52 @@ Prefab: propertyPath: m_Pivot.y value: 0 objectReference: {fileID: 0} - - target: {fileID: 114052756276606012, guid: 460d856ea4eb14cedb5fecde1fe6d743, - type: 2} - propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_Target - value: - objectReference: {fileID: 2063368133} - - target: {fileID: 224030602021903918, guid: 460d856ea4eb14cedb5fecde1fe6d743, - type: 2} - propertyPath: m_AnchorMax.x - value: 0.7 - objectReference: {fileID: 0} - - target: {fileID: 224030602021903918, guid: 460d856ea4eb14cedb5fecde1fe6d743, - type: 2} - propertyPath: m_AnchorMax.y - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 224899125652206328, guid: 460d856ea4eb14cedb5fecde1fe6d743, - type: 2} - propertyPath: m_AnchorMin.x - value: 0.7 - objectReference: {fileID: 0} - - target: {fileID: 224899125652206328, guid: 460d856ea4eb14cedb5fecde1fe6d743, - type: 2} - propertyPath: m_AnchorMax.x - value: 0.7 - objectReference: {fileID: 0} - - target: {fileID: 224899125652206328, guid: 460d856ea4eb14cedb5fecde1fe6d743, - type: 2} - propertyPath: m_AnchorMax.y - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 1139220909146914, guid: 460d856ea4eb14cedb5fecde1fe6d743, type: 2} - propertyPath: m_IsActive - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 224899125652206328, guid: 460d856ea4eb14cedb5fecde1fe6d743, - type: 2} - propertyPath: m_LocalScale.y - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 224899125652206328, guid: 460d856ea4eb14cedb5fecde1fe6d743, - type: 2} - propertyPath: m_LocalScale.x - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 114077156432934238, guid: 460d856ea4eb14cedb5fecde1fe6d743, - type: 2} - propertyPath: m_Sprite - value: - objectReference: {fileID: 21300000, guid: 271a63eb548b41e489d3338148bb0cb5, - type: 3} - - target: {fileID: 114829834214915798, guid: 460d856ea4eb14cedb5fecde1fe6d743, - type: 2} - propertyPath: m_Color.r - value: 0.32156864 - objectReference: {fileID: 0} - - target: {fileID: 114829834214915798, guid: 460d856ea4eb14cedb5fecde1fe6d743, - type: 2} - propertyPath: m_Color.g - value: 0.2901961 - objectReference: {fileID: 0} - - target: {fileID: 114829834214915798, guid: 460d856ea4eb14cedb5fecde1fe6d743, - type: 2} - propertyPath: m_Color.b - value: 0.2901961 - objectReference: {fileID: 0} - - target: {fileID: 114660984839350690, guid: 460d856ea4eb14cedb5fecde1fe6d743, - type: 2} - propertyPath: m_Color.r - value: 0.24528301 - objectReference: {fileID: 0} - - target: {fileID: 114660984839350690, guid: 460d856ea4eb14cedb5fecde1fe6d743, - type: 2} - propertyPath: m_Color.g - value: 0.2233001 - objectReference: {fileID: 0} - - target: {fileID: 114660984839350690, guid: 460d856ea4eb14cedb5fecde1fe6d743, - type: 2} - propertyPath: m_Color.b - value: 0.2233001 - objectReference: {fileID: 0} - - target: {fileID: 224150154901314796, guid: 460d856ea4eb14cedb5fecde1fe6d743, - type: 2} - propertyPath: m_AnchorMin.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 224150154901314796, guid: 460d856ea4eb14cedb5fecde1fe6d743, - type: 2} - propertyPath: m_AnchorMin.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 224150154901314796, guid: 460d856ea4eb14cedb5fecde1fe6d743, - type: 2} - propertyPath: m_AnchorMax.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 224150154901314796, guid: 460d856ea4eb14cedb5fecde1fe6d743, - type: 2} - propertyPath: m_AnchorMax.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 224150154901314796, guid: 460d856ea4eb14cedb5fecde1fe6d743, - type: 2} - propertyPath: m_AnchoredPosition.x - value: 38.643215 - objectReference: {fileID: 0} - - target: {fileID: 224150154901314796, guid: 460d856ea4eb14cedb5fecde1fe6d743, - type: 2} - propertyPath: m_AnchoredPosition.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 114474847320342008, guid: 460d856ea4eb14cedb5fecde1fe6d743, - type: 2} - propertyPath: m_Sprite - value: - objectReference: {fileID: 0} - - target: {fileID: 114474847320342008, guid: 460d856ea4eb14cedb5fecde1fe6d743, - type: 2} - propertyPath: m_Type - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 224150154901314796, guid: 460d856ea4eb14cedb5fecde1fe6d743, - type: 2} - propertyPath: m_SizeDelta.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 224150154901314796, guid: 460d856ea4eb14cedb5fecde1fe6d743, - type: 2} - propertyPath: m_SizeDelta.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 114373005502633030, guid: 460d856ea4eb14cedb5fecde1fe6d743, - type: 2} - propertyPath: m_HorizontalFit - value: 2 - objectReference: {fileID: 0} - - target: {fileID: 224035875368067210, guid: 460d856ea4eb14cedb5fecde1fe6d743, - type: 2} - propertyPath: m_SizeDelta.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 114373005502633030, guid: 460d856ea4eb14cedb5fecde1fe6d743, - type: 2} - propertyPath: m_VerticalFit - value: 2 - objectReference: {fileID: 0} - - target: {fileID: 224035875368067210, guid: 460d856ea4eb14cedb5fecde1fe6d743, - type: 2} - propertyPath: m_SizeDelta.y - value: 50 - objectReference: {fileID: 0} - - target: {fileID: 114395085421692120, guid: 460d856ea4eb14cedb5fecde1fe6d743, - type: 2} - propertyPath: m_FontData.m_FontSize - value: 30 - objectReference: {fileID: 0} - - target: {fileID: 114395085421692120, guid: 460d856ea4eb14cedb5fecde1fe6d743, - type: 2} - propertyPath: m_FontData.m_MinSize - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 114395085421692120, guid: 460d856ea4eb14cedb5fecde1fe6d743, - type: 2} - propertyPath: m_FontData.m_HorizontalOverflow - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 114395085421692120, guid: 460d856ea4eb14cedb5fecde1fe6d743, - type: 2} - propertyPath: m_FontData.m_BestFit - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 224150154901314796, guid: 460d856ea4eb14cedb5fecde1fe6d743, - type: 2} - propertyPath: m_LocalScale.x - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 224150154901314796, guid: 460d856ea4eb14cedb5fecde1fe6d743, - type: 2} - propertyPath: m_LocalScale.y - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 114395085421692120, guid: 460d856ea4eb14cedb5fecde1fe6d743, - type: 2} - propertyPath: m_FontData.m_RichText - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 114395085421692120, guid: 460d856ea4eb14cedb5fecde1fe6d743, - type: 2} - propertyPath: m_FontData.m_VerticalOverflow - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 224035875368067210, guid: 460d856ea4eb14cedb5fecde1fe6d743, - type: 2} - propertyPath: m_AnchoredPosition.y - value: -46.619995 - objectReference: {fileID: 0} - - target: {fileID: 224035875368067210, guid: 460d856ea4eb14cedb5fecde1fe6d743, - type: 2} - propertyPath: m_AnchoredPosition.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 224035875368067210, guid: 460d856ea4eb14cedb5fecde1fe6d743, - type: 2} - propertyPath: m_AnchorMin.y - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 224035875368067210, guid: 460d856ea4eb14cedb5fecde1fe6d743, - type: 2} - propertyPath: m_AnchorMax.y - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 224035875368067210, guid: 460d856ea4eb14cedb5fecde1fe6d743, - type: 2} - propertyPath: m_Pivot.x - value: 0.5 - objectReference: {fileID: 0} - - target: {fileID: 114474847320342008, guid: 460d856ea4eb14cedb5fecde1fe6d743, - type: 2} - propertyPath: m_PreserveAspect - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 224035875368067210, guid: 460d856ea4eb14cedb5fecde1fe6d743, - type: 2} - propertyPath: m_AnchorMin.x - value: 0.5 - objectReference: {fileID: 0} - - target: {fileID: 224035875368067210, guid: 460d856ea4eb14cedb5fecde1fe6d743, - type: 2} - propertyPath: m_AnchorMax.x - value: 0.5 - objectReference: {fileID: 0} - - target: {fileID: 114395085421692120, guid: 460d856ea4eb14cedb5fecde1fe6d743, - type: 2} - propertyPath: m_Color.a - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 114474847320342008, guid: 460d856ea4eb14cedb5fecde1fe6d743, - type: 2} - propertyPath: m_Color.a - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 114164855268691286, guid: 460d856ea4eb14cedb5fecde1fe6d743, - type: 2} - propertyPath: m_FontData.m_Font - value: - objectReference: {fileID: 12800000, guid: 12f77943eccfc5e47ae5cdb66e214d9f, - type: 3} - - target: {fileID: 114634244626046608, guid: 460d856ea4eb14cedb5fecde1fe6d743, - type: 2} - propertyPath: m_FontData.m_Font - value: - objectReference: {fileID: 12800000, guid: 12f77943eccfc5e47ae5cdb66e214d9f, - type: 3} - - target: {fileID: 114627022317662968, guid: 460d856ea4eb14cedb5fecde1fe6d743, - type: 2} - propertyPath: m_FontData.m_Font - value: - objectReference: {fileID: 12800000, guid: 12f77943eccfc5e47ae5cdb66e214d9f, - type: 3} - - target: {fileID: 114634244626046608, guid: 460d856ea4eb14cedb5fecde1fe6d743, - type: 2} - propertyPath: m_FontData.m_FontSize - value: 20 - objectReference: {fileID: 0} - - target: {fileID: 114634244626046608, guid: 460d856ea4eb14cedb5fecde1fe6d743, - type: 2} - propertyPath: m_FontData.m_MinSize - value: 2 - objectReference: {fileID: 0} - - target: {fileID: 114164855268691286, guid: 460d856ea4eb14cedb5fecde1fe6d743, - type: 2} - propertyPath: m_FontData.m_FontSize - value: 20 - objectReference: {fileID: 0} - - target: {fileID: 114164855268691286, guid: 460d856ea4eb14cedb5fecde1fe6d743, - type: 2} - propertyPath: m_FontData.m_MinSize - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 114627022317662968, guid: 460d856ea4eb14cedb5fecde1fe6d743, - type: 2} - propertyPath: m_FontData.m_FontSize - value: 35 - objectReference: {fileID: 0} - - target: {fileID: 114956533738794260, guid: 460d856ea4eb14cedb5fecde1fe6d743, - type: 2} - propertyPath: m_FontData.m_Font - value: - objectReference: {fileID: 12800000, guid: 12f77943eccfc5e47ae5cdb66e214d9f, - type: 3} - - target: {fileID: 114311258538206922, guid: 460d856ea4eb14cedb5fecde1fe6d743, - type: 2} - propertyPath: m_FontData.m_Font - value: - objectReference: {fileID: 12800000, guid: 12f77943eccfc5e47ae5cdb66e214d9f, - type: 3} - - target: {fileID: 114516921110256910, guid: 460d856ea4eb14cedb5fecde1fe6d743, - type: 2} - propertyPath: m_MinValue - value: -60 - objectReference: {fileID: 0} - - target: {fileID: 114516921110256910, guid: 460d856ea4eb14cedb5fecde1fe6d743, - type: 2} - propertyPath: m_MaxValue - value: 20 - objectReference: {fileID: 0} - target: {fileID: 114516921110256910, guid: 460d856ea4eb14cedb5fecde1fe6d743, type: 2} propertyPath: m_OnValueChanged.m_PersistentCalls.m_Calls.Array.data[0].m_Target value: objectReference: {fileID: 881384373} - - target: {fileID: 114516921110256910, guid: 460d856ea4eb14cedb5fecde1fe6d743, + - target: {fileID: 114052756276606012, guid: 460d856ea4eb14cedb5fecde1fe6d743, type: 2} - propertyPath: m_OnValueChanged.m_PersistentCalls.m_Calls.Array.data[0].m_MethodName - value: SetMasterVolume - objectReference: {fileID: 0} - - target: {fileID: 114516921110256910, guid: 460d856ea4eb14cedb5fecde1fe6d743, + propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_Target + value: + objectReference: {fileID: 2063368133} + - target: {fileID: 224150154901314796, guid: 460d856ea4eb14cedb5fecde1fe6d743, type: 2} - propertyPath: m_Value + propertyPath: m_AnchorMin.y value: 0 objectReference: {fileID: 0} - m_RemovedComponents: - - {fileID: 114373005502633030, guid: 460d856ea4eb14cedb5fecde1fe6d743, type: 2} + - target: {fileID: 224150154901314796, guid: 460d856ea4eb14cedb5fecde1fe6d743, + type: 2} + propertyPath: m_AnchorMax.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 224150154901314796, guid: 460d856ea4eb14cedb5fecde1fe6d743, + type: 2} + propertyPath: m_AnchoredPosition.x + value: 38.545288 + objectReference: {fileID: 0} + - target: {fileID: 224150154901314796, guid: 460d856ea4eb14cedb5fecde1fe6d743, + type: 2} + propertyPath: m_AnchoredPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 224150154901314796, guid: 460d856ea4eb14cedb5fecde1fe6d743, + type: 2} + propertyPath: m_SizeDelta.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 224150154901314796, guid: 460d856ea4eb14cedb5fecde1fe6d743, + type: 2} + propertyPath: m_SizeDelta.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 224035875368067210, guid: 460d856ea4eb14cedb5fecde1fe6d743, + type: 2} + propertyPath: m_SizeDelta.x + value: 0 + objectReference: {fileID: 0} + m_RemovedComponents: [] m_ParentPrefab: {fileID: 100100000, guid: 460d856ea4eb14cedb5fecde1fe6d743, type: 2} m_IsPrefabParent: 0 --- !u!1 &1379476069 stripped @@ -1769,46 +1475,6 @@ GameObject: m_PrefabParentObject: {fileID: 1998375241450644, guid: 460d856ea4eb14cedb5fecde1fe6d743, type: 2} m_PrefabInternal: {fileID: 1379476068} ---- !u!1 &1379476070 stripped -GameObject: - m_PrefabParentObject: {fileID: 1738841749900334, guid: 460d856ea4eb14cedb5fecde1fe6d743, - type: 2} - m_PrefabInternal: {fileID: 1379476068} ---- !u!114 &1379476071 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1379476070} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 1741964061, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_HorizontalFit: 2 - m_VerticalFit: 0 ---- !u!114 &1379476072 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1379476070} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: -405508275, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Padding: - m_Left: 10 - m_Right: 10 - m_Top: 10 - m_Bottom: 10 - m_ChildAlignment: 4 - m_Spacing: 10 - m_ChildForceExpandWidth: 1 - m_ChildForceExpandHeight: 1 - m_ChildControlWidth: 1 - m_ChildControlHeight: 1 --- !u!1001 &1543828915 Prefab: m_ObjectHideFlags: 0 diff --git a/Assets/Scenes/TitleScene.unity b/Assets/Scenes/TitleScene.unity index 4c5dfc9..cbc6683 100644 --- a/Assets/Scenes/TitleScene.unity +++ b/Assets/Scenes/TitleScene.unity @@ -1206,6 +1206,7 @@ RectTransform: - {fileID: 1100252403} - {fileID: 2026061257} - {fileID: 1321930645} + - {fileID: 1983703758} m_Father: {fileID: 1622722979} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} @@ -2503,6 +2504,133 @@ Transform: m_Father: {fileID: 1027617338} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1 &1983703757 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + serializedVersion: 5 + m_Component: + - component: {fileID: 1983703758} + - component: {fileID: 1983703761} + - component: {fileID: 1983703760} + - component: {fileID: 1983703759} + m_Layer: 5 + m_Name: Mute + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &1983703758 +RectTransform: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1983703757} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 0.5, y: 0.5, z: 1} + m_Children: [] + m_Father: {fileID: 626823871} + m_RootOrder: 4 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 1, y: 1} + m_AnchorMax: {x: 1, y: 1} + m_AnchoredPosition: {x: -9, y: -8} + m_SizeDelta: {x: 321.8, y: 55} + m_Pivot: {x: 1, y: 1} +--- !u!114 &1983703759 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1983703757} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 1392445389, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Navigation: + m_Mode: 3 + m_SelectOnUp: {fileID: 0} + m_SelectOnDown: {fileID: 0} + m_SelectOnLeft: {fileID: 0} + m_SelectOnRight: {fileID: 0} + m_Transition: 1 + m_Colors: + m_NormalColor: {r: 1, g: 1, b: 1, a: 1} + m_HighlightedColor: {r: 0.764151, g: 0.764151, b: 0.764151, a: 1} + m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, 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_DisabledSprite: {fileID: 0} + m_AnimationTriggers: + m_NormalTrigger: Normal + m_HighlightedTrigger: Highlighted + m_PressedTrigger: Pressed + m_DisabledTrigger: Disabled + m_Interactable: 1 + m_TargetGraphic: {fileID: 1983703760} + m_OnClick: + m_PersistentCalls: + m_Calls: + - m_Target: {fileID: 1027617339} + m_MethodName: ToggleMuteMaster + m_Mode: 1 + 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_TypeName: UnityEngine.UI.Button+ButtonClickedEvent, UnityEngine.UI, Version=1.0.0.0, + Culture=neutral, PublicKeyToken=null +--- !u!114 &1983703760 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1983703757} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 708705254, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 0.754717, g: 0.754717, b: 0.754717, a: 1} + m_RaycastTarget: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, + Version=1.0.0.0, Culture=neutral, PublicKeyToken=null + m_FontData: + m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} + m_FontSize: 50 + m_FontStyle: 1 + m_BestFit: 0 + m_MinSize: 5 + m_MaxSize: 50 + m_Alignment: 0 + m_AlignByGeometry: 0 + m_RichText: 1 + m_HorizontalOverflow: 1 + m_VerticalOverflow: 1 + m_LineSpacing: 1 + m_Text: Mute/Unmute +--- !u!222 &1983703761 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1983703757} --- !u!1 &2015154021 GameObject: m_ObjectHideFlags: 0 diff --git a/Assets/Scripts/AudioControl.cs b/Assets/Scripts/AudioControl.cs index 4c12230..86677c7 100644 --- a/Assets/Scripts/AudioControl.cs +++ b/Assets/Scripts/AudioControl.cs @@ -16,6 +16,7 @@ public class AudioControl : MonoBehaviour private const float lvlbgm = 5.725f; private const float gobgm = 14.157f; private const float loopdelay = 0.025f; + private float prevVolume = -80f; // Use this for initialization void Start() @@ -90,5 +91,12 @@ public class AudioControl : MonoBehaviour { mixer.SetFloat("sfxVolume", Mathf.Clamp(nvol, -80f, 20f)); } + + public void ToggleMuteMaster() { + float t = 0f; + mixer.GetFloat("masterVolume", out t); + SetMasterVolume(prevVolume); + prevVolume = t; + } } diff --git a/Assets/graphics/textures/UI/messageBox.png.meta b/Assets/graphics/textures/UI/messageBox.png.meta index eeccfac..a1d10e3 100644 --- a/Assets/graphics/textures/UI/messageBox.png.meta +++ b/Assets/graphics/textures/UI/messageBox.png.meta @@ -45,7 +45,7 @@ TextureImporter: alignment: 0 spritePivot: {x: 0.5, y: 0.5} spritePixelsToUnits: 100 - spriteBorder: {x: 380, y: 296, z: 503, w: 271} + spriteBorder: {x: 0, y: 0, z: 0, w: 0} spriteGenerateFallbackPhysicsShape: 1 alphaUsage: 1 alphaIsTransparency: 1 diff --git a/Assets/sound/AudioMixer.mixer b/Assets/sound/AudioMixer.mixer index 2c86733..5ed1b6d 100644 --- a/Assets/sound/AudioMixer.mixer +++ b/Assets/sound/AudioMixer.mixer @@ -91,6 +91,7 @@ AudioMixerSnapshotController: 644f6589fc60a074a98ad67d609f2bfb: 5.1526957 5da050aa578318a4f8f1fed71a509fce: -14.816608 bf89843b5f1f52248935471e56d764be: -9.833286 + 43685e8fb476ee342aecf379591bcac4: 0 m_TransitionOverrides: {} --- !u!243 &243021022379401452 AudioMixerGroupController: