diff --git a/Assets/Scenes/Main.unity b/Assets/Scenes/Main.unity index 6cf9eb2b..16a4c762 100644 --- a/Assets/Scenes/Main.unity +++ b/Assets/Scenes/Main.unity @@ -396,6 +396,12 @@ RectTransform: m_AnchoredPosition: {x: 0, y: 0} m_SizeDelta: {x: 100, y: 100} m_Pivot: {x: 0.5, y: 0.5} +--- !u!1 &306136927 stripped +GameObject: + m_CorrespondingSourceObject: {fileID: 6774909300678283129, guid: 9963fec33e379324db2affcb3f83332f, + type: 3} + m_PrefabInstance: {fileID: 7732943800119484192} + m_PrefabAsset: {fileID: 0} --- !u!114 &307044924 stripped MonoBehaviour: m_CorrespondingSourceObject: {fileID: 2794549335201400503, guid: 5fbb7c7c8ec47e849afba1b658f3e07e, @@ -548,6 +554,156 @@ PrefabInstance: insertIndex: -1 addedObject: {fileID: 1135435428} m_SourcePrefab: {fileID: 100100000, guid: 73a3583486de62c4a82ee0734c80f1bf, type: 3} +--- !u!1 &365423228 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 365423229} + - component: {fileID: 365423232} + - component: {fileID: 365423231} + - component: {fileID: 365423230} + m_Layer: 5 + m_Name: CountdownTwo + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &365423229 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 365423228} + 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_ConstrainProportionsScale: 1 + m_Children: [] + m_Father: {fileID: 879409197} + 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: -280} + m_SizeDelta: {x: 500, y: 500} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!225 &365423230 +CanvasGroup: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 365423228} + m_Enabled: 1 + m_Alpha: 1 + m_Interactable: 1 + m_BlocksRaycasts: 1 + m_IgnoreParentGroups: 0 +--- !u!114 &365423231 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 365423228} + 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: 2 + m_isRightToLeft: 0 + m_fontAsset: {fileID: 11400000, guid: d7ebf92bcaa3051449a3f0f71e0eabe0, type: 2} + m_sharedMaterial: {fileID: -3049969205050250096, guid: d7ebf92bcaa3051449a3f0f71e0eabe0, + type: 2} + m_fontSharedMaterials: [] + m_fontMaterial: {fileID: 0} + m_fontMaterials: [] + m_fontColor32: + serializedVersion: 2 + rgba: 4282134812 + m_fontColor: {r: 0.10980393, g: 0.19215688, b: 0.23529413, 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: 422.75 + m_fontSizeBase: 36 + m_fontWeight: 400 + m_enableAutoSizing: 1 + m_fontSizeMin: 18 + m_fontSizeMax: 500 + m_fontStyle: 0 + m_HorizontalAlignment: 2 + m_VerticalAlignment: 512 + m_textAlignment: 65535 + m_characterSpacing: 0 + m_wordSpacing: 0 + m_lineSpacing: 0 + m_lineSpacingMax: 0 + m_paragraphSpacing: 0 + m_charWidthMaxAdj: 0 + m_TextWrappingMode: 1 + m_wordWrappingRatios: 0.4 + m_overflowMode: 0 + m_linkedTextComponent: {fileID: 0} + parentLinkedComponent: {fileID: 0} + m_enableKerning: 0 + m_ActiveFontFeatures: 6e72656b + m_enableExtraPadding: 0 + checkPaddingRequired: 0 + m_isRichText: 1 + m_EmojiFallbackSupport: 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: 0 + m_useMaxVisibleDescender: 1 + m_pageToDisplay: 1 + m_margin: {x: 0, y: 0, z: 0, 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!222 &365423232 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 365423228} + m_CullTransparentMesh: 1 --- !u!1001 &392614949 PrefabInstance: m_ObjectHideFlags: 0 @@ -807,7 +963,6 @@ MonoBehaviour: m_EditorClassIdentifier: lat: 53.245072 lon: 5.860219 - YRotation: 0 prefab: {fileID: 2318991450609453006, guid: 4304b289e9966db478ec0bebd2d7e5ef, type: 3} --- !u!1001 &675407186 PrefabInstance: @@ -1093,7 +1248,6 @@ MonoBehaviour: horizontalInput: {fileID: 11400000, guid: 93242d5c5434ab44c966480e1ff5c8d5, type: 2} jumpInput: {fileID: 11400000, guid: 46da008daaac56f4c97ac21469b742b5, type: 2} routeFile: {fileID: 4900000, guid: 3653738e64b9fdb44a2b7a94ac1bfed4, type: 3} - scoreBoard: {fileID: 199510457} --- !u!1 &816029622 GameObject: m_ObjectHideFlags: 0 @@ -1917,6 +2071,187 @@ CanvasRenderer: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1247894817} m_CullTransparentMesh: 1 +--- !u!225 &1282961723 stripped +CanvasGroup: + m_CorrespondingSourceObject: {fileID: 527151198268852213, guid: 9963fec33e379324db2affcb3f83332f, + type: 3} + m_PrefabInstance: {fileID: 7732943800119484192} + m_PrefabAsset: {fileID: 0} +--- !u!114 &1282961724 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 306136927} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: d0a827f570df226499c050398477eab1, type: 3} + m_Name: + m_EditorClassIdentifier: + getReady: + m_PersistentCalls: + m_Calls: [] + startGame: + m_PersistentCalls: + m_Calls: [] + canvasGroup: {fileID: 1282961723} + CountdownOne: {fileID: 1289894844} + CountdownTwo: {fileID: 365423230} + CountdownThree: {fileID: 1727774869} + fadeDuration: 0.3 + countDownDuration: 1 + countDownTargetScale: 0.5 +--- !u!1 &1289894842 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1289894843} + - component: {fileID: 1289894846} + - component: {fileID: 1289894845} + - component: {fileID: 1289894844} + m_Layer: 5 + m_Name: CountdownOne + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &1289894843 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1289894842} + 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_ConstrainProportionsScale: 1 + m_Children: [] + m_Father: {fileID: 879409197} + 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: -280} + m_SizeDelta: {x: 500, y: 500} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!225 &1289894844 +CanvasGroup: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1289894842} + m_Enabled: 1 + m_Alpha: 1 + m_Interactable: 1 + m_BlocksRaycasts: 1 + m_IgnoreParentGroups: 0 +--- !u!114 &1289894845 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1289894842} + 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: 1 + m_isRightToLeft: 0 + m_fontAsset: {fileID: 11400000, guid: d7ebf92bcaa3051449a3f0f71e0eabe0, type: 2} + m_sharedMaterial: {fileID: -3049969205050250096, guid: d7ebf92bcaa3051449a3f0f71e0eabe0, + type: 2} + m_fontSharedMaterials: [] + m_fontMaterial: {fileID: 0} + m_fontMaterials: [] + m_fontColor32: + serializedVersion: 2 + rgba: 4282134812 + m_fontColor: {r: 0.10980393, g: 0.19215688, b: 0.23529413, 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: 422.75 + m_fontSizeBase: 36 + m_fontWeight: 400 + m_enableAutoSizing: 1 + m_fontSizeMin: 18 + m_fontSizeMax: 500 + m_fontStyle: 0 + m_HorizontalAlignment: 2 + m_VerticalAlignment: 512 + m_textAlignment: 65535 + m_characterSpacing: 0 + m_wordSpacing: 0 + m_lineSpacing: 0 + m_lineSpacingMax: 0 + m_paragraphSpacing: 0 + m_charWidthMaxAdj: 0 + m_TextWrappingMode: 1 + m_wordWrappingRatios: 0.4 + m_overflowMode: 0 + m_linkedTextComponent: {fileID: 0} + parentLinkedComponent: {fileID: 0} + m_enableKerning: 0 + m_ActiveFontFeatures: 6e72656b + m_enableExtraPadding: 0 + checkPaddingRequired: 0 + m_isRichText: 1 + m_EmojiFallbackSupport: 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: 0 + m_useMaxVisibleDescender: 1 + m_pageToDisplay: 1 + m_margin: {x: 0, y: 0, z: 0, 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!222 &1289894846 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1289894842} + m_CullTransparentMesh: 1 --- !u!1 &1304566669 GameObject: m_ObjectHideFlags: 0 @@ -2395,10 +2730,9 @@ Transform: m_ConstrainProportionsScale: 0 m_Children: - {fileID: 658036872} - - {fileID: 1966369585} m_Father: {fileID: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &1966369584 +--- !u!1 &1727774867 GameObject: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} @@ -2406,49 +2740,148 @@ GameObject: m_PrefabAsset: {fileID: 0} serializedVersion: 6 m_Component: - - component: {fileID: 1966369585} - - component: {fileID: 1966369586} - m_Layer: 0 - m_Name: movableAsset + - component: {fileID: 1727774868} + - component: {fileID: 1727774871} + - component: {fileID: 1727774870} + - component: {fileID: 1727774869} + m_Layer: 5 + m_Name: CountdownThree m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 ---- !u!4 &1966369585 -Transform: +--- !u!224 &1727774868 +RectTransform: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1966369584} - serializedVersion: 2 + m_GameObject: {fileID: 1727774867} 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_ConstrainProportionsScale: 0 + m_ConstrainProportionsScale: 1 m_Children: [] - m_Father: {fileID: 1776585307} + m_Father: {fileID: 879409197} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &1966369586 + m_AnchorMin: {x: 0.5, y: 1} + m_AnchorMax: {x: 0.5, y: 1} + m_AnchoredPosition: {x: 0, y: -280} + m_SizeDelta: {x: 500, y: 500} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!225 &1727774869 +CanvasGroup: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1727774867} + m_Enabled: 1 + m_Alpha: 1 + m_Interactable: 1 + m_BlocksRaycasts: 1 + m_IgnoreParentGroups: 0 +--- !u!114 &1727774870 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1966369584} + m_GameObject: {fileID: 1727774867} m_Enabled: 1 m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 3a9aa5d81ed72164997c5fcb6c4be56d, type: 3} + m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3} m_Name: m_EditorClassIdentifier: - lat: 53.244972 - lon: 5.860112 - YRotation: 0 - prefab: {fileID: 2318991450609453006, guid: 4304b289e9966db478ec0bebd2d7e5ef, type: 3} - latTarget: 53.244886 - lonTarget: 5.860585 - moveSpeed: 1 + 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: 3 + m_isRightToLeft: 0 + m_fontAsset: {fileID: 11400000, guid: d7ebf92bcaa3051449a3f0f71e0eabe0, type: 2} + m_sharedMaterial: {fileID: -3049969205050250096, guid: d7ebf92bcaa3051449a3f0f71e0eabe0, + type: 2} + m_fontSharedMaterials: [] + m_fontMaterial: {fileID: 0} + m_fontMaterials: [] + m_fontColor32: + serializedVersion: 2 + rgba: 4282134812 + m_fontColor: {r: 0.10980393, g: 0.19215688, b: 0.23529413, 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: 422.75 + m_fontSizeBase: 36 + m_fontWeight: 400 + m_enableAutoSizing: 1 + m_fontSizeMin: 18 + m_fontSizeMax: 500 + m_fontStyle: 0 + m_HorizontalAlignment: 2 + m_VerticalAlignment: 512 + m_textAlignment: 65535 + m_characterSpacing: 0 + m_wordSpacing: 0 + m_lineSpacing: 0 + m_lineSpacingMax: 0 + m_paragraphSpacing: 0 + m_charWidthMaxAdj: 0 + m_TextWrappingMode: 1 + m_wordWrappingRatios: 0.4 + m_overflowMode: 0 + m_linkedTextComponent: {fileID: 0} + parentLinkedComponent: {fileID: 0} + m_enableKerning: 0 + m_ActiveFontFeatures: 6e72656b + m_enableExtraPadding: 0 + checkPaddingRequired: 0 + m_isRichText: 1 + m_EmojiFallbackSupport: 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: 0 + m_useMaxVisibleDescender: 1 + m_pageToDisplay: 1 + m_margin: {x: 0, y: 0, z: 0, 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!222 &1727774871 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1727774867} + m_CullTransparentMesh: 1 --- !u!1 &2058067599 GameObject: m_ObjectHideFlags: 0 @@ -2672,22 +3105,42 @@ PrefabInstance: - target: {fileID: 3849934062868920522, guid: 5fbb7c7c8ec47e849afba1b658f3e07e, type: 3} propertyPath: m_LocalRotation.w - value: 0.19783519 + value: 0.19789146 objectReference: {fileID: 0} - target: {fileID: 3849934062868920522, guid: 5fbb7c7c8ec47e849afba1b658f3e07e, type: 3} propertyPath: m_LocalRotation.x - value: 0.08259036 + value: 0.08262601 objectReference: {fileID: 0} - target: {fileID: 3849934062868920522, guid: 5fbb7c7c8ec47e849afba1b658f3e07e, type: 3} propertyPath: m_LocalRotation.y - value: 0.90135777 + value: 0.90132475 objectReference: {fileID: 0} - target: {fileID: 3849934062868920522, guid: 5fbb7c7c8ec47e849afba1b658f3e07e, type: 3} propertyPath: m_LocalRotation.z - value: -0.37629026 + value: -0.37633187 + objectReference: {fileID: 0} + - target: {fileID: 3849934062868920522, guid: 5fbb7c7c8ec47e849afba1b658f3e07e, + type: 3} + propertyPath: m_LocalRotation.w + value: 0.19771233 + objectReference: {fileID: 0} + - target: {fileID: 3849934062868920522, guid: 5fbb7c7c8ec47e849afba1b658f3e07e, + type: 3} + propertyPath: m_LocalRotation.x + value: 0.08251256 + objectReference: {fileID: 0} + - target: {fileID: 3849934062868920522, guid: 5fbb7c7c8ec47e849afba1b658f3e07e, + type: 3} + propertyPath: m_LocalRotation.y + value: 0.9014297 + objectReference: {fileID: 0} + - target: {fileID: 3849934062868920522, guid: 5fbb7c7c8ec47e849afba1b658f3e07e, + type: 3} + propertyPath: m_LocalRotation.z + value: -0.37619942 objectReference: {fileID: 0} - target: {fileID: 3919916255551741050, guid: 5fbb7c7c8ec47e849afba1b658f3e07e, type: 3} @@ -6907,6 +7360,26 @@ PrefabInstance: propertyPath: m_AnchoredPosition.y value: 0 objectReference: {fileID: 0} + - target: {fileID: 2967639384774196494, guid: 9963fec33e379324db2affcb3f83332f, + type: 3} + propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_Mode + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 2967639384774196494, guid: 9963fec33e379324db2affcb3f83332f, + type: 3} + propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_Target + value: + objectReference: {fileID: 1282961724} + - target: {fileID: 2967639384774196494, guid: 9963fec33e379324db2affcb3f83332f, + type: 3} + propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_MethodName + value: StartGame + objectReference: {fileID: 0} + - target: {fileID: 2967639384774196494, guid: 9963fec33e379324db2affcb3f83332f, + type: 3} + propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_TargetAssemblyTypeName + value: Netherlands3D.Twin.StartScreen, Assembly-CSharp + objectReference: {fileID: 0} - target: {fileID: 2984712510486319644, guid: 9963fec33e379324db2affcb3f83332f, type: 3} propertyPath: m_AnchorMax.y @@ -10357,6 +10830,18 @@ PrefabInstance: type: 3} insertIndex: 3 addedObject: {fileID: 199510459} + - targetCorrespondingSourceObject: {fileID: 2773908478669454240, guid: 9963fec33e379324db2affcb3f83332f, + type: 3} + insertIndex: -1 + addedObject: {fileID: 1727774868} + - targetCorrespondingSourceObject: {fileID: 2773908478669454240, guid: 9963fec33e379324db2affcb3f83332f, + type: 3} + insertIndex: -1 + addedObject: {fileID: 365423229} + - targetCorrespondingSourceObject: {fileID: 2773908478669454240, guid: 9963fec33e379324db2affcb3f83332f, + type: 3} + insertIndex: -1 + addedObject: {fileID: 1289894843} - targetCorrespondingSourceObject: {fileID: 8632740765308209879, guid: 9963fec33e379324db2affcb3f83332f, type: 3} insertIndex: -1 @@ -10365,7 +10850,11 @@ PrefabInstance: type: 3} insertIndex: -1 addedObject: {fileID: 392614950} - m_AddedComponents: [] + m_AddedComponents: + - targetCorrespondingSourceObject: {fileID: 6774909300678283129, guid: 9963fec33e379324db2affcb3f83332f, + type: 3} + insertIndex: -1 + addedObject: {fileID: 1282961724} m_SourcePrefab: {fileID: 100100000, guid: 9963fec33e379324db2affcb3f83332f, type: 3} --- !u!224 &7732943800119484193 stripped RectTransform: diff --git a/Assets/StartScreen.cs b/Assets/StartScreen.cs new file mode 100644 index 00000000..77f37469 --- /dev/null +++ b/Assets/StartScreen.cs @@ -0,0 +1,70 @@ +using DG.Tweening; +using UnityEngine; +using UnityEngine.Events; + +namespace Netherlands3D.Twin +{ + public class StartScreen : MonoBehaviour + { + public UnityEvent getReady = new(); + public UnityEvent startGame = new (); + [SerializeField] private CanvasGroup canvasGroup; + [SerializeField] private CanvasGroup CountdownOne; + [SerializeField] private CanvasGroup CountdownTwo; + [SerializeField] private CanvasGroup CountdownThree; + [SerializeField] private float fadeDuration = .3f; + [SerializeField] private float countDownDuration = 1f; + [SerializeField] private float countDownTargetScale = .5f; + + private void Start() + { + Show(); + } + + private void OnEnable() + { + CountdownThree.alpha = 1f; + CountdownThree.gameObject.SetActive(false); + CountdownTwo.alpha = 1f; + CountdownTwo.gameObject.SetActive(false); + CountdownOne.alpha = 1f; + CountdownOne.gameObject.SetActive(false); + } + + public void Show() + { + gameObject.SetActive(true); + } + + public void StartGame() + { + var sequence = DOTween.Sequence(this); + sequence.Append(canvasGroup.DOFade(0, fadeDuration).OnComplete(TriggerGetReady)); + sequence.AppendCallback(() => CountdownThree.gameObject.SetActive(true)); + sequence.Append(CountdownThree.transform.DOScale(countDownTargetScale, countDownDuration)); + sequence.Join(CountdownThree.DOFade(0, countDownDuration).SetEase(Ease.InQuad)); + sequence.AppendCallback(() => CountdownThree.gameObject.SetActive(false)); + sequence.AppendCallback(() => CountdownTwo.gameObject.SetActive(true)); + sequence.Append(CountdownTwo.transform.DOScale(countDownTargetScale, countDownDuration)); + sequence.Join(CountdownTwo.DOFade(0, countDownDuration).SetEase(Ease.InQuad)); + sequence.AppendCallback(() => CountdownTwo.gameObject.SetActive(false)); + sequence.AppendCallback(() => CountdownOne.gameObject.SetActive(true)); + sequence.Append(CountdownOne.transform.DOScale(countDownTargetScale, countDownDuration)); + sequence.Join(CountdownOne.DOFade(0, countDownDuration).SetEase(Ease.InQuad)); + sequence.AppendCallback(() => CountdownOne.gameObject.SetActive(false)); + sequence.AppendCallback(TriggerStartOfGame); + sequence.Play(); + } + + private void TriggerGetReady() + { + gameObject.SetActive(false); + getReady.Invoke(); + } + + private void TriggerStartOfGame() + { + startGame.Invoke(); + } + } +} diff --git a/Assets/StartScreen.cs.meta b/Assets/StartScreen.cs.meta new file mode 100644 index 00000000..5709cb48 --- /dev/null +++ b/Assets/StartScreen.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: d0a827f570df226499c050398477eab1 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: