mirror of
				https://github.com/boudji-ludwig-pett/cnam-geometry-dash.git
				synced 2025-06-27 11:58:51 +02:00 
			
		
		
		
	feat: json loader (#37)
This commit is contained in:
		| @@ -8,8 +8,9 @@ indent_style = space | ||||
| end_of_line = lf | ||||
|  | ||||
| [*.{json,jsonc,asmdef}] | ||||
| indent_size = 2 | ||||
| indent_size = 4 | ||||
| trim_trailing_whitespace = true | ||||
| insert_final_newline = true | ||||
|  | ||||
| [*.{yml,yaml,sh,puml,md}] | ||||
| indent_size = 2 | ||||
|   | ||||
							
								
								
									
										14
									
								
								.vscode/extensions.json
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										14
									
								
								.vscode/extensions.json
									
									
									
									
										vendored
									
									
								
							| @@ -1,9 +1,9 @@ | ||||
| { | ||||
|   "recommendations": [ | ||||
|     "editorconfig.editorconfig", | ||||
|     "jebbs.plantuml", | ||||
|     "visualstudiotoolsforunity.vstuc", | ||||
|     "ms-dotnettools.csharp", | ||||
|     "ms-dotnettools.csdevkit" | ||||
|   ] | ||||
|     "recommendations": [ | ||||
|         "editorconfig.editorconfig", | ||||
|         "jebbs.plantuml", | ||||
|         "visualstudiotoolsforunity.vstuc", | ||||
|         "ms-dotnettools.csharp", | ||||
|         "ms-dotnettools.csdevkit" | ||||
|     ] | ||||
| } | ||||
|   | ||||
							
								
								
									
										16
									
								
								.vscode/launch.json
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										16
									
								
								.vscode/launch.json
									
									
									
									
										vendored
									
									
								
							| @@ -1,10 +1,10 @@ | ||||
| { | ||||
|   "version": "0.2.0", | ||||
|   "configurations": [ | ||||
|     { | ||||
|       "name": "Attach to Unity", | ||||
|       "type": "vstuc", | ||||
|       "request": "attach" | ||||
|     } | ||||
|   ] | ||||
|     "version": "0.2.0", | ||||
|     "configurations": [ | ||||
|         { | ||||
|             "name": "Attach to Unity", | ||||
|             "type": "vstuc", | ||||
|             "request": "attach" | ||||
|         } | ||||
|     ] | ||||
| } | ||||
|   | ||||
							
								
								
									
										16
									
								
								.vscode/settings.json
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										16
									
								
								.vscode/settings.json
									
									
									
									
										vendored
									
									
								
							| @@ -1,10 +1,10 @@ | ||||
| { | ||||
|   "editor.bracketPairColorization.enabled": true, | ||||
|   "editor.wordWrap": "on", | ||||
|   "[csharp]": { | ||||
|     "editor.tabSize": 4, | ||||
|     "editor.formatOnSave": true, | ||||
|     "editor.formatOnType": true | ||||
|   }, | ||||
|   "omnisharp.useModernNet": false | ||||
|     "editor.bracketPairColorization.enabled": true, | ||||
|     "editor.wordWrap": "on", | ||||
|     "[csharp]": { | ||||
|         "editor.tabSize": 4, | ||||
|         "editor.formatOnSave": true, | ||||
|         "editor.formatOnType": true | ||||
|     }, | ||||
|     "omnisharp.useModernNet": false | ||||
| } | ||||
|   | ||||
							
								
								
									
										8
									
								
								Assets/Resources.meta
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								Assets/Resources.meta
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,8 @@ | ||||
| fileFormatVersion: 2 | ||||
| guid: 6b0d0b1b64df4dd87945cd95cc7484c7 | ||||
| folderAsset: yes | ||||
| DefaultImporter: | ||||
|   externalObjects: {} | ||||
|   userData:  | ||||
|   assetBundleName:  | ||||
|   assetBundleVariant:  | ||||
							
								
								
									
										8
									
								
								Assets/Resources/Levels.meta
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								Assets/Resources/Levels.meta
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,8 @@ | ||||
| fileFormatVersion: 2 | ||||
| guid: 8a276afa778b9651581567c4c5bd8c7c | ||||
| folderAsset: yes | ||||
| DefaultImporter: | ||||
|   externalObjects: {} | ||||
|   userData:  | ||||
|   assetBundleName:  | ||||
|   assetBundleVariant:  | ||||
							
								
								
									
										16
									
								
								Assets/Resources/Levels/BackOnTrack.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								Assets/Resources/Levels/BackOnTrack.json
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,16 @@ | ||||
| { | ||||
|     "name": "Back on Track", | ||||
|     "musicName": "BackOnTrack", | ||||
|     "totalJumps": 0, | ||||
|     "totalAttempts": 0, | ||||
|     "order": 2, | ||||
|     "elements": [ | ||||
|         { | ||||
|             "type": "Spike", | ||||
|             "position": { | ||||
|                 "x": 0, | ||||
|                 "y": 0 | ||||
|             } | ||||
|         } | ||||
|     ] | ||||
| } | ||||
							
								
								
									
										7
									
								
								Assets/Resources/Levels/BackOnTrack.json.meta
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								Assets/Resources/Levels/BackOnTrack.json.meta
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,7 @@ | ||||
| fileFormatVersion: 2 | ||||
| guid: f32c76b542365930aa0e19dff76d20c7 | ||||
| TextScriptImporter: | ||||
|   externalObjects: {} | ||||
|   userData:  | ||||
|   assetBundleName:  | ||||
|   assetBundleVariant:  | ||||
							
								
								
									
										16
									
								
								Assets/Resources/Levels/StereoMadness.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								Assets/Resources/Levels/StereoMadness.json
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,16 @@ | ||||
| { | ||||
|     "name": "Stereo Madness", | ||||
|     "musicName": "StereoMadness", | ||||
|     "totalJumps": 0, | ||||
|     "totalAttempts": 0, | ||||
|     "order": 1, | ||||
|     "elements": [ | ||||
|         { | ||||
|             "type": "Spike", | ||||
|             "position": { | ||||
|                 "x": 0, | ||||
|                 "y": 0 | ||||
|             } | ||||
|         } | ||||
|     ] | ||||
| } | ||||
							
								
								
									
										7
									
								
								Assets/Resources/Levels/StereoMadness.json.meta
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								Assets/Resources/Levels/StereoMadness.json.meta
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,7 @@ | ||||
| fileFormatVersion: 2 | ||||
| guid: b865ad45000d21465bdcfbbca0225616 | ||||
| TextScriptImporter: | ||||
|   externalObjects: {} | ||||
|   userData:  | ||||
|   assetBundleName:  | ||||
|   assetBundleVariant:  | ||||
| @@ -642,6 +642,50 @@ Transform: | ||||
|   m_Children: [] | ||||
|   m_Father: {fileID: 0} | ||||
|   m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} | ||||
| --- !u!1 &1832520161 | ||||
| GameObject: | ||||
|   m_ObjectHideFlags: 0 | ||||
|   m_CorrespondingSourceObject: {fileID: 0} | ||||
|   m_PrefabInstance: {fileID: 0} | ||||
|   m_PrefabAsset: {fileID: 0} | ||||
|   serializedVersion: 6 | ||||
|   m_Component: | ||||
|   - component: {fileID: 1832520163} | ||||
|   - component: {fileID: 1832520162} | ||||
|   m_Layer: 0 | ||||
|   m_Name: LevelsLoader | ||||
|   m_TagString: LevelsLoader | ||||
|   m_Icon: {fileID: 0} | ||||
|   m_NavMeshLayer: 0 | ||||
|   m_StaticEditorFlags: 0 | ||||
|   m_IsActive: 1 | ||||
| --- !u!114 &1832520162 | ||||
| MonoBehaviour: | ||||
|   m_ObjectHideFlags: 0 | ||||
|   m_CorrespondingSourceObject: {fileID: 0} | ||||
|   m_PrefabInstance: {fileID: 0} | ||||
|   m_PrefabAsset: {fileID: 0} | ||||
|   m_GameObject: {fileID: 1832520161} | ||||
|   m_Enabled: 1 | ||||
|   m_EditorHideFlags: 0 | ||||
|   m_Script: {fileID: 11500000, guid: 4c3543e79f987af40bbd4a51c0a334c3, type: 3} | ||||
|   m_Name:  | ||||
|   m_EditorClassIdentifier:  | ||||
| --- !u!4 &1832520163 | ||||
| Transform: | ||||
|   m_ObjectHideFlags: 0 | ||||
|   m_CorrespondingSourceObject: {fileID: 0} | ||||
|   m_PrefabInstance: {fileID: 0} | ||||
|   m_PrefabAsset: {fileID: 0} | ||||
|   m_GameObject: {fileID: 1832520161} | ||||
|   serializedVersion: 2 | ||||
|   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_Children: [] | ||||
|   m_Father: {fileID: 0} | ||||
|   m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} | ||||
| --- !u!1 &1888054985 | ||||
| GameObject: | ||||
|   m_ObjectHideFlags: 0 | ||||
| @@ -886,3 +930,4 @@ SceneRoots: | ||||
|   - {fileID: 1888054988} | ||||
|   - {fileID: 481473977} | ||||
|   - {fileID: 948896768} | ||||
|   - {fileID: 1832520163} | ||||
|   | ||||
| @@ -5581,6 +5581,7 @@ MonoBehaviour: | ||||
|   rigidBody: {fileID: 1267397456} | ||||
|   playerObject: {fileID: 1267397455} | ||||
|   particle: {fileID: 725779776} | ||||
|   levelsLoader: {fileID: 0} | ||||
|   isColliding: 1 | ||||
|   audioSource: {fileID: 1267397461} | ||||
| --- !u!61 &1267397460 | ||||
| @@ -5642,7 +5643,7 @@ AudioSource: | ||||
|   m_audioClip: {fileID: 8300000, guid: 681525f18aa52594aa45865f4c54b61a, type: 3} | ||||
|   m_Resource: {fileID: 8300000, guid: 681525f18aa52594aa45865f4c54b61a, type: 3} | ||||
|   m_PlayOnAwake: 1 | ||||
|   m_Volume: 1 | ||||
|   m_Volume: 0.5 | ||||
|   m_Pitch: 1 | ||||
|   Loop: 0 | ||||
|   Mute: 0 | ||||
|   | ||||
| @@ -131,6 +131,7 @@ GameObject: | ||||
|   - component: {fileID: 1255459} | ||||
|   - component: {fileID: 1255458} | ||||
|   - component: {fileID: 1255457} | ||||
|   - component: {fileID: 1255460} | ||||
|   m_Layer: 5 | ||||
|   m_Name: Level | ||||
|   m_TagString: Untagged | ||||
| @@ -202,8 +203,8 @@ MonoBehaviour: | ||||
|   m_OnClick: | ||||
|     m_PersistentCalls: | ||||
|       m_Calls: | ||||
|       - m_Target: {fileID: 1170341696} | ||||
|         m_TargetAssemblyTypeName: SelectLevelMenu, Assembly-CSharp | ||||
|       - m_Target: {fileID: 1255460} | ||||
|         m_TargetAssemblyTypeName: LevelNameButton, Assembly-CSharp | ||||
|         m_MethodName: PlayLevel | ||||
|         m_Mode: 1 | ||||
|         m_Arguments: | ||||
| @@ -252,6 +253,18 @@ CanvasRenderer: | ||||
|   m_PrefabAsset: {fileID: 0} | ||||
|   m_GameObject: {fileID: 1255455} | ||||
|   m_CullTransparentMesh: 1 | ||||
| --- !u!114 &1255460 | ||||
| MonoBehaviour: | ||||
|   m_ObjectHideFlags: 0 | ||||
|   m_CorrespondingSourceObject: {fileID: 0} | ||||
|   m_PrefabInstance: {fileID: 0} | ||||
|   m_PrefabAsset: {fileID: 0} | ||||
|   m_GameObject: {fileID: 1255455} | ||||
|   m_Enabled: 1 | ||||
|   m_EditorHideFlags: 0 | ||||
|   m_Script: {fileID: 11500000, guid: 3617637b5b720115a8f1a856cb43f8a5, type: 3} | ||||
|   m_Name:  | ||||
|   m_EditorClassIdentifier:  | ||||
| --- !u!1 &91128433 | ||||
| GameObject: | ||||
|   m_ObjectHideFlags: 0 | ||||
| @@ -422,8 +435,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: -7.8890953, y: 0} | ||||
|   m_SizeDelta: {x: -15.778, y: 0} | ||||
|   m_Pivot: {x: 0.5, y: 0.5} | ||||
| --- !u!114 &253164522 | ||||
| MonoBehaviour: | ||||
| @@ -445,7 +458,7 @@ MonoBehaviour: | ||||
|   m_OnCullStateChanged: | ||||
|     m_PersistentCalls: | ||||
|       m_Calls: [] | ||||
|   m_text: Last | ||||
|   m_text: Previous | ||||
|   m_isRightToLeft: 0 | ||||
|   m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2} | ||||
|   m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2} | ||||
| @@ -510,7 +523,7 @@ MonoBehaviour: | ||||
|   m_VertexBufferAutoSizeReduction: 0 | ||||
|   m_useMaxVisibleDescender: 1 | ||||
|   m_pageToDisplay: 1 | ||||
|   m_margin: {x: 0, y: 0, z: 0, w: 0} | ||||
|   m_margin: {x: 0, y: 0, z: -13.6918335, w: 0} | ||||
|   m_isUsingLegacyAnimationComponent: 0 | ||||
|   m_isVolumetricText: 0 | ||||
|   m_hasFontAssetChanged: 0 | ||||
| @@ -613,9 +626,10 @@ GameObject: | ||||
|   m_Component: | ||||
|   - component: {fileID: 954359121} | ||||
|   - component: {fileID: 954359123} | ||||
|   - component: {fileID: 954359122} | ||||
|   - component: {fileID: 954359124} | ||||
|   - component: {fileID: 954359125} | ||||
|   m_Layer: 5 | ||||
|   m_Name: Text (TMP) | ||||
|   m_Name: Text | ||||
|   m_TagString: Untagged | ||||
|   m_Icon: {fileID: 0} | ||||
|   m_NavMeshLayer: 0 | ||||
| @@ -640,97 +654,6 @@ RectTransform: | ||||
|   m_AnchoredPosition: {x: 0, y: 0} | ||||
|   m_SizeDelta: {x: 0, y: 0} | ||||
|   m_Pivot: {x: 0.5, y: 0.5} | ||||
| --- !u!114 &954359122 | ||||
| MonoBehaviour: | ||||
|   m_ObjectHideFlags: 0 | ||||
|   m_CorrespondingSourceObject: {fileID: 0} | ||||
|   m_PrefabInstance: {fileID: 0} | ||||
|   m_PrefabAsset: {fileID: 0} | ||||
|   m_GameObject: {fileID: 954359120} | ||||
|   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: Level | ||||
|   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: 4281479730 | ||||
|   m_fontColor: {r: 0.19607843, g: 0.19607843, b: 0.19607843, 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: 24 | ||||
|   m_fontSizeBase: 24 | ||||
|   m_fontWeight: 400 | ||||
|   m_enableAutoSizing: 0 | ||||
|   m_fontSizeMin: 18 | ||||
|   m_fontSizeMax: 72 | ||||
|   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 &954359123 | ||||
| CanvasRenderer: | ||||
|   m_ObjectHideFlags: 0 | ||||
| @@ -739,6 +662,54 @@ CanvasRenderer: | ||||
|   m_PrefabAsset: {fileID: 0} | ||||
|   m_GameObject: {fileID: 954359120} | ||||
|   m_CullTransparentMesh: 1 | ||||
| --- !u!114 &954359124 | ||||
| MonoBehaviour: | ||||
|   m_ObjectHideFlags: 0 | ||||
|   m_CorrespondingSourceObject: {fileID: 0} | ||||
|   m_PrefabInstance: {fileID: 0} | ||||
|   m_PrefabAsset: {fileID: 0} | ||||
|   m_GameObject: {fileID: 954359120} | ||||
|   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, g: 0, b: 0, 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: 12800000, guid: e3265ab4bf004d28a9537516768c1c75, type: 3} | ||||
|     m_FontSize: 32 | ||||
|     m_FontStyle: 0 | ||||
|     m_BestFit: 0 | ||||
|     m_MinSize: 0 | ||||
|     m_MaxSize: 40 | ||||
|     m_Alignment: 4 | ||||
|     m_AlignByGeometry: 0 | ||||
|     m_RichText: 1 | ||||
|     m_HorizontalOverflow: 0 | ||||
|     m_VerticalOverflow: 0 | ||||
|     m_LineSpacing: 1 | ||||
|   m_Text: Level | ||||
| --- !u!114 &954359125 | ||||
| MonoBehaviour: | ||||
|   m_ObjectHideFlags: 0 | ||||
|   m_CorrespondingSourceObject: {fileID: 0} | ||||
|   m_PrefabInstance: {fileID: 0} | ||||
|   m_PrefabAsset: {fileID: 0} | ||||
|   m_GameObject: {fileID: 954359120} | ||||
|   m_Enabled: 1 | ||||
|   m_EditorHideFlags: 0 | ||||
|   m_Script: {fileID: 11500000, guid: b9d2aa88c034d40f187d6ff84705da65, type: 3} | ||||
|   m_Name:  | ||||
|   m_EditorClassIdentifier:  | ||||
|   levelsLoader: {fileID: 0} | ||||
|   levelNameText: {fileID: 954359124} | ||||
| --- !u!1 &976210033 | ||||
| GameObject: | ||||
|   m_ObjectHideFlags: 0 | ||||
| @@ -751,8 +722,9 @@ GameObject: | ||||
|   - component: {fileID: 976210037} | ||||
|   - component: {fileID: 976210036} | ||||
|   - component: {fileID: 976210035} | ||||
|   - component: {fileID: 976210038} | ||||
|   m_Layer: 5 | ||||
|   m_Name: LastLevel | ||||
|   m_Name: PreviousButton | ||||
|   m_TagString: Untagged | ||||
|   m_Icon: {fileID: 0} | ||||
|   m_NavMeshLayer: 0 | ||||
| @@ -775,8 +747,8 @@ RectTransform: | ||||
|   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: -389, y: 0} | ||||
|   m_SizeDelta: {x: 76.7583, y: 51.8448} | ||||
|   m_AnchoredPosition: {x: -369.9035, y: 0} | ||||
|   m_SizeDelta: {x: 114.9513, y: 51.8448} | ||||
|   m_Pivot: {x: 0.5, y: 0.5} | ||||
| --- !u!114 &976210035 | ||||
| MonoBehaviour: | ||||
| @@ -822,9 +794,9 @@ MonoBehaviour: | ||||
|   m_OnClick: | ||||
|     m_PersistentCalls: | ||||
|       m_Calls: | ||||
|       - m_Target: {fileID: 1170341696} | ||||
|         m_TargetAssemblyTypeName: SelectLevelMenu, Assembly-CSharp | ||||
|         m_MethodName: LastLevel | ||||
|       - m_Target: {fileID: 976210038} | ||||
|         m_TargetAssemblyTypeName: LevelPreviousButton, Assembly-CSharp | ||||
|         m_MethodName: PreviousLevel | ||||
|         m_Mode: 1 | ||||
|         m_Arguments: | ||||
|           m_ObjectArgument: {fileID: 0} | ||||
| @@ -872,6 +844,18 @@ CanvasRenderer: | ||||
|   m_PrefabAsset: {fileID: 0} | ||||
|   m_GameObject: {fileID: 976210033} | ||||
|   m_CullTransparentMesh: 1 | ||||
| --- !u!114 &976210038 | ||||
| MonoBehaviour: | ||||
|   m_ObjectHideFlags: 0 | ||||
|   m_CorrespondingSourceObject: {fileID: 0} | ||||
|   m_PrefabInstance: {fileID: 0} | ||||
|   m_PrefabAsset: {fileID: 0} | ||||
|   m_GameObject: {fileID: 976210033} | ||||
|   m_Enabled: 1 | ||||
|   m_EditorHideFlags: 0 | ||||
|   m_Script: {fileID: 11500000, guid: 2c53cba3260b30d02b79e69a3198546c, type: 3} | ||||
|   m_Name:  | ||||
|   m_EditorClassIdentifier:  | ||||
| --- !u!1 &1094616661 | ||||
| GameObject: | ||||
|   m_ObjectHideFlags: 0 | ||||
| @@ -954,7 +938,7 @@ MonoBehaviour: | ||||
|   m_OnClick: | ||||
|     m_PersistentCalls: | ||||
|       m_Calls: | ||||
|       - m_Target: {fileID: 1170341696} | ||||
|       - m_Target: {fileID: 0} | ||||
|         m_TargetAssemblyTypeName: SelectLevelMenu, Assembly-CSharp | ||||
|         m_MethodName: LevelStatsBtn | ||||
|         m_Mode: 1 | ||||
| @@ -1016,8 +1000,9 @@ GameObject: | ||||
|   - component: {fileID: 1099679060} | ||||
|   - component: {fileID: 1099679059} | ||||
|   - component: {fileID: 1099679058} | ||||
|   - component: {fileID: 1099679061} | ||||
|   m_Layer: 5 | ||||
|   m_Name: Back | ||||
|   m_Name: HomeButton | ||||
|   m_TagString: Untagged | ||||
|   m_Icon: {fileID: 0} | ||||
|   m_NavMeshLayer: 0 | ||||
| @@ -1086,9 +1071,9 @@ MonoBehaviour: | ||||
|   m_OnClick: | ||||
|     m_PersistentCalls: | ||||
|       m_Calls: | ||||
|       - m_Target: {fileID: 1170341696} | ||||
|         m_TargetAssemblyTypeName: SelectLevelMenu, Assembly-CSharp | ||||
|         m_MethodName: BackBtn | ||||
|       - m_Target: {fileID: 1099679061} | ||||
|         m_TargetAssemblyTypeName: LevelHomeButton, Assembly-CSharp | ||||
|         m_MethodName: GoToHome | ||||
|         m_Mode: 1 | ||||
|         m_Arguments: | ||||
|           m_ObjectArgument: {fileID: 0} | ||||
| @@ -1136,6 +1121,18 @@ CanvasRenderer: | ||||
|   m_PrefabAsset: {fileID: 0} | ||||
|   m_GameObject: {fileID: 1099679056} | ||||
|   m_CullTransparentMesh: 1 | ||||
| --- !u!114 &1099679061 | ||||
| MonoBehaviour: | ||||
|   m_ObjectHideFlags: 0 | ||||
|   m_CorrespondingSourceObject: {fileID: 0} | ||||
|   m_PrefabInstance: {fileID: 0} | ||||
|   m_PrefabAsset: {fileID: 0} | ||||
|   m_GameObject: {fileID: 1099679056} | ||||
|   m_Enabled: 1 | ||||
|   m_EditorHideFlags: 0 | ||||
|   m_Script: {fileID: 11500000, guid: ef2acea012085a3bb9a981fc334afaec, type: 3} | ||||
|   m_Name:  | ||||
|   m_EditorClassIdentifier:  | ||||
| --- !u!1 &1153106988 | ||||
| GameObject: | ||||
|   m_ObjectHideFlags: 0 | ||||
| @@ -1255,10 +1252,9 @@ GameObject: | ||||
|   - component: {fileID: 1170341695} | ||||
|   - component: {fileID: 1170341694} | ||||
|   - component: {fileID: 1170341693} | ||||
|   - component: {fileID: 1170341696} | ||||
|   m_Layer: 0 | ||||
|   m_Name: Main Camera | ||||
|   m_TagString: MainCamera | ||||
|   m_TagString: LevelLoader | ||||
|   m_Icon: {fileID: 0} | ||||
|   m_NavMeshLayer: 0 | ||||
|   m_StaticEditorFlags: 0 | ||||
| @@ -1338,18 +1334,6 @@ Transform: | ||||
|   - {fileID: 1153106989} | ||||
|   m_Father: {fileID: 0} | ||||
|   m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} | ||||
| --- !u!114 &1170341696 | ||||
| MonoBehaviour: | ||||
|   m_ObjectHideFlags: 0 | ||||
|   m_CorrespondingSourceObject: {fileID: 0} | ||||
|   m_PrefabInstance: {fileID: 0} | ||||
|   m_PrefabAsset: {fileID: 0} | ||||
|   m_GameObject: {fileID: 1170341692} | ||||
|   m_Enabled: 1 | ||||
|   m_EditorHideFlags: 0 | ||||
|   m_Script: {fileID: 11500000, guid: 78914afaa50342f4fbc6b2f0d1a6c036, type: 3} | ||||
|   m_Name:  | ||||
|   m_EditorClassIdentifier:  | ||||
| --- !u!1 &1174740937 | ||||
| GameObject: | ||||
|   m_ObjectHideFlags: 0 | ||||
| @@ -1634,8 +1618,9 @@ GameObject: | ||||
|   - component: {fileID: 1364527285} | ||||
|   - component: {fileID: 1364527284} | ||||
|   - component: {fileID: 1364527283} | ||||
|   - component: {fileID: 1364527286} | ||||
|   m_Layer: 5 | ||||
|   m_Name: NextLevel | ||||
|   m_Name: NextButton | ||||
|   m_TagString: Untagged | ||||
|   m_Icon: {fileID: 0} | ||||
|   m_NavMeshLayer: 0 | ||||
| @@ -1705,8 +1690,8 @@ MonoBehaviour: | ||||
|   m_OnClick: | ||||
|     m_PersistentCalls: | ||||
|       m_Calls: | ||||
|       - m_Target: {fileID: 1170341696} | ||||
|         m_TargetAssemblyTypeName: SelectLevelMenu, Assembly-CSharp | ||||
|       - m_Target: {fileID: 1364527286} | ||||
|         m_TargetAssemblyTypeName: LevelNextButton, Assembly-CSharp | ||||
|         m_MethodName: NextLevel | ||||
|         m_Mode: 1 | ||||
|         m_Arguments: | ||||
| @@ -1755,6 +1740,18 @@ CanvasRenderer: | ||||
|   m_PrefabAsset: {fileID: 0} | ||||
|   m_GameObject: {fileID: 1364527281} | ||||
|   m_CullTransparentMesh: 1 | ||||
| --- !u!114 &1364527286 | ||||
| MonoBehaviour: | ||||
|   m_ObjectHideFlags: 0 | ||||
|   m_CorrespondingSourceObject: {fileID: 0} | ||||
|   m_PrefabInstance: {fileID: 0} | ||||
|   m_PrefabAsset: {fileID: 0} | ||||
|   m_GameObject: {fileID: 1364527281} | ||||
|   m_Enabled: 1 | ||||
|   m_EditorHideFlags: 0 | ||||
|   m_Script: {fileID: 11500000, guid: c34ef065650ba0802be580828cc0d474, type: 3} | ||||
|   m_Name:  | ||||
|   m_EditorClassIdentifier:  | ||||
| --- !u!1660057539 &9223372036854775807 | ||||
| SceneRoots: | ||||
|   m_ObjectHideFlags: 0 | ||||
|   | ||||
							
								
								
									
										18
									
								
								Assets/Scripts/Level.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								Assets/Scripts/Level.cs
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,18 @@ | ||||
| using UnityEngine; | ||||
|  | ||||
| [System.Serializable] | ||||
| public class Level | ||||
| { | ||||
|     public string JsonName { get; set; } | ||||
|  | ||||
|     public string name; | ||||
|     public string musicName; | ||||
|     public int totalJumps; | ||||
|     public int totalAttempts; | ||||
|     public int order; | ||||
|  | ||||
|     public static Level CreateFromJSON(string jsonString) | ||||
|     { | ||||
|         return JsonUtility.FromJson<Level>(jsonString); | ||||
|     } | ||||
| } | ||||
							
								
								
									
										2
									
								
								Assets/Scripts/Level.cs.meta
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								Assets/Scripts/Level.cs.meta
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,2 @@ | ||||
| fileFormatVersion: 2 | ||||
| guid: d646b99f5a21a91c88669a5e4d774f06 | ||||
							
								
								
									
										58
									
								
								Assets/Scripts/LevelsLoader.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										58
									
								
								Assets/Scripts/LevelsLoader.cs
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,58 @@ | ||||
| using UnityEngine; | ||||
| using System.Collections.Generic; | ||||
| using System.IO; | ||||
|  | ||||
| public class LevelsLoader : MonoBehaviour | ||||
| { | ||||
|     public List<Level> levels = new(); | ||||
|     public Level levelCurrent; | ||||
|  | ||||
|     private void Start() | ||||
|     { | ||||
|         DontDestroyOnLoad(gameObject); | ||||
|         LoadAllLevels(); | ||||
|         levelCurrent = levels[0]; | ||||
|     } | ||||
|  | ||||
|     private void LoadAllLevels() | ||||
|     { | ||||
|         TextAsset[] levelFiles = Resources.LoadAll<TextAsset>("Levels"); | ||||
|         foreach (TextAsset jsonTextFile in levelFiles) | ||||
|         { | ||||
|             Level level = Level.CreateFromJSON(jsonTextFile.text); | ||||
|             level.JsonName = jsonTextFile.name; | ||||
|             levels.Add(level); | ||||
|         } | ||||
|         levels.Sort((x, y) => x.order.CompareTo(y.order)); | ||||
|     } | ||||
|  | ||||
|     private void SaveLevelCurrent() | ||||
|     { | ||||
|         string json = JsonUtility.ToJson(levelCurrent, true) + "\n"; | ||||
|         File.WriteAllText(Path.Combine(Application.dataPath, "Resources", "Levels", levelCurrent.JsonName + ".json"), json); | ||||
|     } | ||||
|  | ||||
|     public void NextLevel() | ||||
|     { | ||||
|         int currentIndex = levels.IndexOf(levelCurrent); | ||||
|         levelCurrent = levels[(currentIndex + 1) % levels.Count]; | ||||
|     } | ||||
|  | ||||
|     public void PreviousLevel() | ||||
|     { | ||||
|         int currentIndex = levels.IndexOf(levelCurrent); | ||||
|         levelCurrent = levels[(currentIndex - 1 + levels.Count) % levels.Count]; | ||||
|     } | ||||
|  | ||||
|     public void IncreaseTotalJumps() | ||||
|     { | ||||
|         levelCurrent.totalJumps += 1; | ||||
|         SaveLevelCurrent(); | ||||
|     } | ||||
|  | ||||
|     public void IncreaseTotalAttempts() | ||||
|     { | ||||
|         levelCurrent.totalAttempts += 1; | ||||
|         SaveLevelCurrent(); | ||||
|     } | ||||
| } | ||||
							
								
								
									
										2
									
								
								Assets/Scripts/LevelsLoader.cs.meta
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								Assets/Scripts/LevelsLoader.cs.meta
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,2 @@ | ||||
| fileFormatVersion: 2 | ||||
| guid: 4c3543e79f987af40bbd4a51c0a334c3 | ||||
							
								
								
									
										8
									
								
								Assets/Scripts/LevelsSelect.meta
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								Assets/Scripts/LevelsSelect.meta
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,8 @@ | ||||
| fileFormatVersion: 2 | ||||
| guid: 946cccb716439eccfa13f90e2fe2abe1 | ||||
| folderAsset: yes | ||||
| DefaultImporter: | ||||
|   externalObjects: {} | ||||
|   userData:  | ||||
|   assetBundleName:  | ||||
|   assetBundleVariant:  | ||||
							
								
								
									
										10
									
								
								Assets/Scripts/LevelsSelect/LevelHomeButton.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								Assets/Scripts/LevelsSelect/LevelHomeButton.cs
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,10 @@ | ||||
| using UnityEngine; | ||||
| using UnityEngine.SceneManagement; | ||||
|  | ||||
| public class LevelHomeButton : MonoBehaviour | ||||
| { | ||||
|     public void GoToHome() | ||||
|     { | ||||
|         SceneManager.LoadScene("HomeScene"); | ||||
|     } | ||||
| } | ||||
							
								
								
									
										2
									
								
								Assets/Scripts/LevelsSelect/LevelHomeButton.cs.meta
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								Assets/Scripts/LevelsSelect/LevelHomeButton.cs.meta
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,2 @@ | ||||
| fileFormatVersion: 2 | ||||
| guid: ef2acea012085a3bb9a981fc334afaec | ||||
							
								
								
									
										10
									
								
								Assets/Scripts/LevelsSelect/LevelNameButton.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								Assets/Scripts/LevelsSelect/LevelNameButton.cs
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,10 @@ | ||||
| using UnityEngine; | ||||
| using UnityEngine.SceneManagement; | ||||
|  | ||||
| public class LevelNameButton : MonoBehaviour | ||||
| { | ||||
|     public void PlayLevel() | ||||
|     { | ||||
|         SceneManager.LoadScene("LevelScene"); | ||||
|     } | ||||
| } | ||||
							
								
								
									
										2
									
								
								Assets/Scripts/LevelsSelect/LevelNameButton.cs.meta
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								Assets/Scripts/LevelsSelect/LevelNameButton.cs.meta
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,2 @@ | ||||
| fileFormatVersion: 2 | ||||
| guid: 3617637b5b720115a8f1a856cb43f8a5 | ||||
							
								
								
									
										19
									
								
								Assets/Scripts/LevelsSelect/LevelNameText.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								Assets/Scripts/LevelsSelect/LevelNameText.cs
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,19 @@ | ||||
| using UnityEngine; | ||||
| using UnityEngine.UI; | ||||
|  | ||||
| public class LevelNameText : MonoBehaviour | ||||
| { | ||||
|     public Text levelNameText; | ||||
|     public LevelsLoader levelsLoader; | ||||
|  | ||||
|     public void Start() | ||||
|     { | ||||
|         levelsLoader = GameObject.FindGameObjectWithTag("LevelsLoader").GetComponent<LevelsLoader>(); | ||||
|         levelNameText.text = levelsLoader.levelCurrent.name; | ||||
|     } | ||||
|  | ||||
|     public void Update() | ||||
|     { | ||||
|         levelNameText.text = levelsLoader.levelCurrent.name; | ||||
|     } | ||||
| } | ||||
							
								
								
									
										2
									
								
								Assets/Scripts/LevelsSelect/LevelNameText.cs.meta
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								Assets/Scripts/LevelsSelect/LevelNameText.cs.meta
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,2 @@ | ||||
| fileFormatVersion: 2 | ||||
| guid: b9d2aa88c034d40f187d6ff84705da65 | ||||
							
								
								
									
										16
									
								
								Assets/Scripts/LevelsSelect/LevelNextButton.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								Assets/Scripts/LevelsSelect/LevelNextButton.cs
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,16 @@ | ||||
| using UnityEngine; | ||||
|  | ||||
| public class LevelNextButton : MonoBehaviour | ||||
| { | ||||
|     public LevelsLoader levelsLoader; | ||||
|  | ||||
|     public void Start() | ||||
|     { | ||||
|         levelsLoader = GameObject.FindGameObjectWithTag("LevelsLoader").GetComponent<LevelsLoader>(); | ||||
|     } | ||||
|  | ||||
|     public void NextLevel() | ||||
|     { | ||||
|         levelsLoader.NextLevel(); | ||||
|     } | ||||
| } | ||||
							
								
								
									
										2
									
								
								Assets/Scripts/LevelsSelect/LevelNextButton.cs.meta
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								Assets/Scripts/LevelsSelect/LevelNextButton.cs.meta
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,2 @@ | ||||
| fileFormatVersion: 2 | ||||
| guid: c34ef065650ba0802be580828cc0d474 | ||||
							
								
								
									
										16
									
								
								Assets/Scripts/LevelsSelect/LevelPreviousButton.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								Assets/Scripts/LevelsSelect/LevelPreviousButton.cs
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,16 @@ | ||||
| using UnityEngine; | ||||
|  | ||||
| public class LevelPreviousButton : MonoBehaviour | ||||
| { | ||||
|     public LevelsLoader levelsLoader; | ||||
|  | ||||
|     public void Start() | ||||
|     { | ||||
|         levelsLoader = GameObject.FindGameObjectWithTag("LevelsLoader").GetComponent<LevelsLoader>(); | ||||
|     } | ||||
|  | ||||
|     public void PreviousLevel() | ||||
|     { | ||||
|         levelsLoader.PreviousLevel(); | ||||
|     } | ||||
| } | ||||
							
								
								
									
										2
									
								
								Assets/Scripts/LevelsSelect/LevelPreviousButton.cs.meta
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								Assets/Scripts/LevelsSelect/LevelPreviousButton.cs.meta
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,2 @@ | ||||
| fileFormatVersion: 2 | ||||
| guid: 2c53cba3260b30d02b79e69a3198546c | ||||
| @@ -1,11 +1,13 @@ | ||||
| using UnityEngine; | ||||
| using UnityEngine.SceneManagement; | ||||
| using System.IO; | ||||
| 
 | ||||
| public class PlayerScript : MonoBehaviour | ||||
| public class Player : MonoBehaviour | ||||
| { | ||||
|     public Rigidbody2D rigidBody; | ||||
|     public GameObject playerObject; | ||||
|     public ParticleSystem particle; | ||||
|     public LevelsLoader levelsLoader; | ||||
| 
 | ||||
|     public bool isColliding = true; | ||||
|     public AudioSource audioSource; | ||||
| @@ -15,6 +17,12 @@ public class PlayerScript : MonoBehaviour | ||||
| 
 | ||||
|     public void Start() | ||||
|     { | ||||
|         levelsLoader = GameObject.FindGameObjectWithTag("LevelsLoader").GetComponent<LevelsLoader>(); | ||||
|         levelsLoader.IncreaseTotalAttempts(); | ||||
| 
 | ||||
|         audioSource.clip = Resources.Load<AudioClip>(Path.Combine("Musics", levelsLoader.levelCurrent.musicName)); | ||||
|         audioSource.Play(); | ||||
| 
 | ||||
|         var mainModule = particle.main; | ||||
|         mainModule.simulationSpace = ParticleSystemSimulationSpace.World; | ||||
|         particle.transform.parent = null; | ||||
| @@ -55,6 +63,7 @@ public class PlayerScript : MonoBehaviour | ||||
|     { | ||||
|         rigidBody.linearVelocity = new Vector2(rigidBody.linearVelocity.x, 0); | ||||
|         rigidBody.AddForce(Vector2.up * 26.6581f, ForceMode2D.Impulse); | ||||
|         levelsLoader.IncreaseTotalJumps(); | ||||
|     } | ||||
| 
 | ||||
|     private bool IsJumping() | ||||
| @@ -1,6 +1,6 @@ | ||||
| using UnityEngine; | ||||
| 
 | ||||
| public class CameraScript : MonoBehaviour | ||||
| public class PlayerCamera : MonoBehaviour | ||||
| { | ||||
|     public GameObject playerObject; | ||||
| 
 | ||||
| @@ -1,30 +0,0 @@ | ||||
| using UnityEngine; | ||||
| using UnityEngine.SceneManagement; | ||||
|  | ||||
| public class SelectLevelMenu : MonoBehaviour | ||||
| { | ||||
|     public void PlayLevel() | ||||
|     { | ||||
|         SceneManager.LoadScene("LevelScene"); | ||||
|     } | ||||
|  | ||||
|     public void BackBtn() | ||||
|     { | ||||
|         SceneManager.LoadScene("HomeScene"); | ||||
|     } | ||||
|  | ||||
|     public void LastLevel() | ||||
|     { | ||||
|         // TODO | ||||
|     } | ||||
|  | ||||
|     public void NextLevel() | ||||
|     { | ||||
|         // TODO | ||||
|     } | ||||
|  | ||||
|     public void LevelStatsBtn() | ||||
|     { | ||||
|         // SceneManager.LoadSceneAsync(?); | ||||
|     } | ||||
| } | ||||
| @@ -1,2 +0,0 @@ | ||||
| fileFormatVersion: 2 | ||||
| guid: 78914afaa50342f4fbc6b2f0d1a6c036 | ||||
| @@ -1,155 +1,157 @@ | ||||
| {"frames": [ | ||||
| { | ||||
|   "filename": "1f60a.png", | ||||
|   "frame": {"x":0,"y":0,"w":128,"h":128}, | ||||
|   "rotated": false, | ||||
|   "trimmed": false, | ||||
|   "spriteSourceSize": {"x":0,"y":0,"w":128,"h":128}, | ||||
|   "sourceSize": {"w":128,"h":128}, | ||||
|   "pivot": {"x":0.5,"y":0.5} | ||||
| }, | ||||
| { | ||||
|   "filename": "1f60b.png", | ||||
|   "frame": {"x":128,"y":0,"w":128,"h":128}, | ||||
|   "rotated": false, | ||||
|   "trimmed": false, | ||||
|   "spriteSourceSize": {"x":0,"y":0,"w":128,"h":128}, | ||||
|   "sourceSize": {"w":128,"h":128}, | ||||
|   "pivot": {"x":0.5,"y":0.5} | ||||
| }, | ||||
| { | ||||
|   "filename": "1f60d.png", | ||||
|   "frame": {"x":256,"y":0,"w":128,"h":128}, | ||||
|   "rotated": false, | ||||
|   "trimmed": false, | ||||
|   "spriteSourceSize": {"x":0,"y":0,"w":128,"h":128}, | ||||
|   "sourceSize": {"w":128,"h":128}, | ||||
|   "pivot": {"x":0.5,"y":0.5} | ||||
|   }, | ||||
|   { | ||||
|   "filename": "1f60e.png", | ||||
|   "frame": {"x":384,"y":0,"w":128,"h":128}, | ||||
|   "rotated": false, | ||||
|   "trimmed": false, | ||||
|   "spriteSourceSize": {"x":0,"y":0,"w":128,"h":128}, | ||||
|   "sourceSize": {"w":128,"h":128}, | ||||
|   "pivot": {"x":0.5,"y":0.5} | ||||
|   }, | ||||
|   { | ||||
|   "filename": "1f600.png", | ||||
|   "frame": {"x":0,"y":128,"w":128,"h":128}, | ||||
|   "rotated": false, | ||||
|   "trimmed": false, | ||||
|   "spriteSourceSize": {"x":0,"y":0,"w":128,"h":128}, | ||||
|   "sourceSize": {"w":128,"h":128}, | ||||
|   "pivot": {"x":0.5,"y":0.5} | ||||
|   }, | ||||
|   { | ||||
|   "filename": "1f601.png", | ||||
|   "frame": {"x":128,"y":128,"w":128,"h":128}, | ||||
|   "rotated": false, | ||||
|   "trimmed": false, | ||||
|   "spriteSourceSize": {"x":0,"y":0,"w":128,"h":128}, | ||||
|   "sourceSize": {"w":128,"h":128}, | ||||
|   "pivot": {"x":0.5,"y":0.5} | ||||
|   }, | ||||
|   { | ||||
|   "filename": "1f602.png", | ||||
|   "frame": {"x":256,"y":128,"w":128,"h":128}, | ||||
|   "rotated": false, | ||||
|   "trimmed": false, | ||||
|   "spriteSourceSize": {"x":0,"y":0,"w":128,"h":128}, | ||||
|   "sourceSize": {"w":128,"h":128}, | ||||
|   "pivot": {"x":0.5,"y":0.5} | ||||
|   }, | ||||
|   { | ||||
|   "filename": "1f603.png", | ||||
|   "frame": {"x":384,"y":128,"w":128,"h":128}, | ||||
|   "rotated": false, | ||||
|   "trimmed": false, | ||||
|   "spriteSourceSize": {"x":0,"y":0,"w":128,"h":128}, | ||||
|   "sourceSize": {"w":128,"h":128}, | ||||
|   "pivot": {"x":0.5,"y":0.5} | ||||
|   }, | ||||
|   { | ||||
|   "filename": "1f604.png", | ||||
|   "frame": {"x":0,"y":256,"w":128,"h":128}, | ||||
|   "rotated": false, | ||||
|   "trimmed": false, | ||||
|   "spriteSourceSize": {"x":0,"y":0,"w":128,"h":128}, | ||||
|   "sourceSize": {"w":128,"h":128}, | ||||
|   "pivot": {"x":0.5,"y":0.5} | ||||
|   }, | ||||
|   { | ||||
|   "filename": "1f605.png", | ||||
|   "frame": {"x":128,"y":256,"w":128,"h":128}, | ||||
|   "rotated": false, | ||||
|   "trimmed": false, | ||||
|   "spriteSourceSize": {"x":0,"y":0,"w":128,"h":128}, | ||||
|   "sourceSize": {"w":128,"h":128}, | ||||
|   "pivot": {"x":0.5,"y":0.5} | ||||
|   }, | ||||
|   { | ||||
|   "filename": "1f606.png", | ||||
|   "frame": {"x":256,"y":256,"w":128,"h":128}, | ||||
|   "rotated": false, | ||||
|   "trimmed": false, | ||||
|   "spriteSourceSize": {"x":0,"y":0,"w":128,"h":128}, | ||||
|   "sourceSize": {"w":128,"h":128}, | ||||
|   "pivot": {"x":0.5,"y":0.5} | ||||
|   }, | ||||
|   { | ||||
|   "filename": "1f609.png", | ||||
|   "frame": {"x":384,"y":256,"w":128,"h":128}, | ||||
|   "rotated": false, | ||||
|   "trimmed": false, | ||||
|   "spriteSourceSize": {"x":0,"y":0,"w":128,"h":128}, | ||||
|   "sourceSize": {"w":128,"h":128}, | ||||
|   "pivot": {"x":0.5,"y":0.5} | ||||
|   }, | ||||
|   { | ||||
|   "filename": "1f618.png", | ||||
|   "frame": {"x":0,"y":384,"w":128,"h":128}, | ||||
|   "rotated": false, | ||||
|   "trimmed": false, | ||||
|   "spriteSourceSize": {"x":0,"y":0,"w":128,"h":128}, | ||||
|   "sourceSize": {"w":128,"h":128}, | ||||
|   "pivot": {"x":0.5,"y":0.5} | ||||
|   }, | ||||
|   { | ||||
|   "filename": "1f923.png", | ||||
|   "frame": {"x":128,"y":384,"w":128,"h":128}, | ||||
|   "rotated": false, | ||||
|   "trimmed": false, | ||||
|   "spriteSourceSize": {"x":0,"y":0,"w":128,"h":128}, | ||||
|   "sourceSize": {"w":128,"h":128}, | ||||
|   "pivot": {"x":0.5,"y":0.5} | ||||
|   }, | ||||
|   { | ||||
|   "filename": "263a.png", | ||||
|   "frame": {"x":256,"y":384,"w":128,"h":128}, | ||||
|   "rotated": false, | ||||
|   "trimmed": false, | ||||
|   "spriteSourceSize": {"x":0,"y":0,"w":128,"h":128}, | ||||
|   "sourceSize": {"w":128,"h":128}, | ||||
|   "pivot": {"x":0.5,"y":0.5} | ||||
|   }, | ||||
|   { | ||||
|   "filename": "2639.png", | ||||
|   "frame": {"x":384,"y":384,"w":128,"h":128}, | ||||
|   "rotated": false, | ||||
|   "trimmed": false, | ||||
|   "spriteSourceSize": {"x":0,"y":0,"w":128,"h":128}, | ||||
|   "sourceSize": {"w":128,"h":128}, | ||||
|   "pivot": {"x":0.5,"y":0.5} | ||||
|   }], | ||||
|   "meta": { | ||||
|   "app": "http://www.codeandweb.com/texturepacker", | ||||
|   "version": "1.0", | ||||
|   "image": "EmojiOne.png", | ||||
|   "format": "RGBA8888", | ||||
|   "size": {"w":512,"h":512}, | ||||
|   "scale": "1", | ||||
|   "smartupdate": "$TexturePacker:SmartUpdate:196a26a2e149d875b91ffc8fa3581e76:fc928c7e275404b7e0649307410475cb:424723c3774975ddb2053fd5c4b85f6e$" | ||||
|   } | ||||
|   } | ||||
|     "frames": [ | ||||
|         { | ||||
|             "filename": "1f60a.png", | ||||
|             "frame": { "x": 0, "y": 0, "w": 128, "h": 128 }, | ||||
|             "rotated": false, | ||||
|             "trimmed": false, | ||||
|             "spriteSourceSize": { "x": 0, "y": 0, "w": 128, "h": 128 }, | ||||
|             "sourceSize": { "w": 128, "h": 128 }, | ||||
|             "pivot": { "x": 0.5, "y": 0.5 } | ||||
|         }, | ||||
|         { | ||||
|             "filename": "1f60b.png", | ||||
|             "frame": { "x": 128, "y": 0, "w": 128, "h": 128 }, | ||||
|             "rotated": false, | ||||
|             "trimmed": false, | ||||
|             "spriteSourceSize": { "x": 0, "y": 0, "w": 128, "h": 128 }, | ||||
|             "sourceSize": { "w": 128, "h": 128 }, | ||||
|             "pivot": { "x": 0.5, "y": 0.5 } | ||||
|         }, | ||||
|         { | ||||
|             "filename": "1f60d.png", | ||||
|             "frame": { "x": 256, "y": 0, "w": 128, "h": 128 }, | ||||
|             "rotated": false, | ||||
|             "trimmed": false, | ||||
|             "spriteSourceSize": { "x": 0, "y": 0, "w": 128, "h": 128 }, | ||||
|             "sourceSize": { "w": 128, "h": 128 }, | ||||
|             "pivot": { "x": 0.5, "y": 0.5 } | ||||
|         }, | ||||
|         { | ||||
|             "filename": "1f60e.png", | ||||
|             "frame": { "x": 384, "y": 0, "w": 128, "h": 128 }, | ||||
|             "rotated": false, | ||||
|             "trimmed": false, | ||||
|             "spriteSourceSize": { "x": 0, "y": 0, "w": 128, "h": 128 }, | ||||
|             "sourceSize": { "w": 128, "h": 128 }, | ||||
|             "pivot": { "x": 0.5, "y": 0.5 } | ||||
|         }, | ||||
|         { | ||||
|             "filename": "1f600.png", | ||||
|             "frame": { "x": 0, "y": 128, "w": 128, "h": 128 }, | ||||
|             "rotated": false, | ||||
|             "trimmed": false, | ||||
|             "spriteSourceSize": { "x": 0, "y": 0, "w": 128, "h": 128 }, | ||||
|             "sourceSize": { "w": 128, "h": 128 }, | ||||
|             "pivot": { "x": 0.5, "y": 0.5 } | ||||
|         }, | ||||
|         { | ||||
|             "filename": "1f601.png", | ||||
|             "frame": { "x": 128, "y": 128, "w": 128, "h": 128 }, | ||||
|             "rotated": false, | ||||
|             "trimmed": false, | ||||
|             "spriteSourceSize": { "x": 0, "y": 0, "w": 128, "h": 128 }, | ||||
|             "sourceSize": { "w": 128, "h": 128 }, | ||||
|             "pivot": { "x": 0.5, "y": 0.5 } | ||||
|         }, | ||||
|         { | ||||
|             "filename": "1f602.png", | ||||
|             "frame": { "x": 256, "y": 128, "w": 128, "h": 128 }, | ||||
|             "rotated": false, | ||||
|             "trimmed": false, | ||||
|             "spriteSourceSize": { "x": 0, "y": 0, "w": 128, "h": 128 }, | ||||
|             "sourceSize": { "w": 128, "h": 128 }, | ||||
|             "pivot": { "x": 0.5, "y": 0.5 } | ||||
|         }, | ||||
|         { | ||||
|             "filename": "1f603.png", | ||||
|             "frame": { "x": 384, "y": 128, "w": 128, "h": 128 }, | ||||
|             "rotated": false, | ||||
|             "trimmed": false, | ||||
|             "spriteSourceSize": { "x": 0, "y": 0, "w": 128, "h": 128 }, | ||||
|             "sourceSize": { "w": 128, "h": 128 }, | ||||
|             "pivot": { "x": 0.5, "y": 0.5 } | ||||
|         }, | ||||
|         { | ||||
|             "filename": "1f604.png", | ||||
|             "frame": { "x": 0, "y": 256, "w": 128, "h": 128 }, | ||||
|             "rotated": false, | ||||
|             "trimmed": false, | ||||
|             "spriteSourceSize": { "x": 0, "y": 0, "w": 128, "h": 128 }, | ||||
|             "sourceSize": { "w": 128, "h": 128 }, | ||||
|             "pivot": { "x": 0.5, "y": 0.5 } | ||||
|         }, | ||||
|         { | ||||
|             "filename": "1f605.png", | ||||
|             "frame": { "x": 128, "y": 256, "w": 128, "h": 128 }, | ||||
|             "rotated": false, | ||||
|             "trimmed": false, | ||||
|             "spriteSourceSize": { "x": 0, "y": 0, "w": 128, "h": 128 }, | ||||
|             "sourceSize": { "w": 128, "h": 128 }, | ||||
|             "pivot": { "x": 0.5, "y": 0.5 } | ||||
|         }, | ||||
|         { | ||||
|             "filename": "1f606.png", | ||||
|             "frame": { "x": 256, "y": 256, "w": 128, "h": 128 }, | ||||
|             "rotated": false, | ||||
|             "trimmed": false, | ||||
|             "spriteSourceSize": { "x": 0, "y": 0, "w": 128, "h": 128 }, | ||||
|             "sourceSize": { "w": 128, "h": 128 }, | ||||
|             "pivot": { "x": 0.5, "y": 0.5 } | ||||
|         }, | ||||
|         { | ||||
|             "filename": "1f609.png", | ||||
|             "frame": { "x": 384, "y": 256, "w": 128, "h": 128 }, | ||||
|             "rotated": false, | ||||
|             "trimmed": false, | ||||
|             "spriteSourceSize": { "x": 0, "y": 0, "w": 128, "h": 128 }, | ||||
|             "sourceSize": { "w": 128, "h": 128 }, | ||||
|             "pivot": { "x": 0.5, "y": 0.5 } | ||||
|         }, | ||||
|         { | ||||
|             "filename": "1f618.png", | ||||
|             "frame": { "x": 0, "y": 384, "w": 128, "h": 128 }, | ||||
|             "rotated": false, | ||||
|             "trimmed": false, | ||||
|             "spriteSourceSize": { "x": 0, "y": 0, "w": 128, "h": 128 }, | ||||
|             "sourceSize": { "w": 128, "h": 128 }, | ||||
|             "pivot": { "x": 0.5, "y": 0.5 } | ||||
|         }, | ||||
|         { | ||||
|             "filename": "1f923.png", | ||||
|             "frame": { "x": 128, "y": 384, "w": 128, "h": 128 }, | ||||
|             "rotated": false, | ||||
|             "trimmed": false, | ||||
|             "spriteSourceSize": { "x": 0, "y": 0, "w": 128, "h": 128 }, | ||||
|             "sourceSize": { "w": 128, "h": 128 }, | ||||
|             "pivot": { "x": 0.5, "y": 0.5 } | ||||
|         }, | ||||
|         { | ||||
|             "filename": "263a.png", | ||||
|             "frame": { "x": 256, "y": 384, "w": 128, "h": 128 }, | ||||
|             "rotated": false, | ||||
|             "trimmed": false, | ||||
|             "spriteSourceSize": { "x": 0, "y": 0, "w": 128, "h": 128 }, | ||||
|             "sourceSize": { "w": 128, "h": 128 }, | ||||
|             "pivot": { "x": 0.5, "y": 0.5 } | ||||
|         }, | ||||
|         { | ||||
|             "filename": "2639.png", | ||||
|             "frame": { "x": 384, "y": 384, "w": 128, "h": 128 }, | ||||
|             "rotated": false, | ||||
|             "trimmed": false, | ||||
|             "spriteSourceSize": { "x": 0, "y": 0, "w": 128, "h": 128 }, | ||||
|             "sourceSize": { "w": 128, "h": 128 }, | ||||
|             "pivot": { "x": 0.5, "y": 0.5 } | ||||
|         } | ||||
|     ], | ||||
|     "meta": { | ||||
|         "app": "http://www.codeandweb.com/texturepacker", | ||||
|         "version": "1.0", | ||||
|         "image": "EmojiOne.png", | ||||
|         "format": "RGBA8888", | ||||
|         "size": { "w": 512, "h": 512 }, | ||||
|         "scale": "1", | ||||
|         "smartupdate": "$TexturePacker:SmartUpdate:196a26a2e149d875b91ffc8fa3581e76:fc928c7e275404b7e0649307410475cb:424723c3774975ddb2053fd5c4b85f6e$" | ||||
|     } | ||||
| } | ||||
|   | ||||
| @@ -17,7 +17,7 @@ class GameManager { | ||||
|  | ||||
| class Level { | ||||
|   - name: String | ||||
|   - musicPath: String | ||||
|   - musicName: String | ||||
|   + StartLevel() | ||||
|   + EndLevel() | ||||
|   + CheckCompletion(): Boolean | ||||
|   | ||||
| @@ -1,46 +1,46 @@ | ||||
| { | ||||
|   "dependencies": { | ||||
|     "com.unity.collab-proxy": "2.6.0", | ||||
|     "com.unity.feature.2d": "2.0.1", | ||||
|     "com.unity.ide.rider": "3.0.31", | ||||
|     "com.unity.ide.visualstudio": "2.0.22", | ||||
|     "com.unity.inputsystem": "1.11.2", | ||||
|     "com.unity.multiplayer.center": "1.0.0", | ||||
|     "com.unity.test-framework": "1.4.5", | ||||
|     "com.unity.timeline": "1.8.7", | ||||
|     "com.unity.ugui": "2.0.0", | ||||
|     "com.unity.visualscripting": "1.9.4", | ||||
|     "com.unity.modules.accessibility": "1.0.0", | ||||
|     "com.unity.modules.ai": "1.0.0", | ||||
|     "com.unity.modules.androidjni": "1.0.0", | ||||
|     "com.unity.modules.animation": "1.0.0", | ||||
|     "com.unity.modules.assetbundle": "1.0.0", | ||||
|     "com.unity.modules.audio": "1.0.0", | ||||
|     "com.unity.modules.cloth": "1.0.0", | ||||
|     "com.unity.modules.director": "1.0.0", | ||||
|     "com.unity.modules.imageconversion": "1.0.0", | ||||
|     "com.unity.modules.imgui": "1.0.0", | ||||
|     "com.unity.modules.jsonserialize": "1.0.0", | ||||
|     "com.unity.modules.particlesystem": "1.0.0", | ||||
|     "com.unity.modules.physics": "1.0.0", | ||||
|     "com.unity.modules.physics2d": "1.0.0", | ||||
|     "com.unity.modules.screencapture": "1.0.0", | ||||
|     "com.unity.modules.terrain": "1.0.0", | ||||
|     "com.unity.modules.terrainphysics": "1.0.0", | ||||
|     "com.unity.modules.tilemap": "1.0.0", | ||||
|     "com.unity.modules.ui": "1.0.0", | ||||
|     "com.unity.modules.uielements": "1.0.0", | ||||
|     "com.unity.modules.umbra": "1.0.0", | ||||
|     "com.unity.modules.unityanalytics": "1.0.0", | ||||
|     "com.unity.modules.unitywebrequest": "1.0.0", | ||||
|     "com.unity.modules.unitywebrequestassetbundle": "1.0.0", | ||||
|     "com.unity.modules.unitywebrequestaudio": "1.0.0", | ||||
|     "com.unity.modules.unitywebrequesttexture": "1.0.0", | ||||
|     "com.unity.modules.unitywebrequestwww": "1.0.0", | ||||
|     "com.unity.modules.vehicles": "1.0.0", | ||||
|     "com.unity.modules.video": "1.0.0", | ||||
|     "com.unity.modules.vr": "1.0.0", | ||||
|     "com.unity.modules.wind": "1.0.0", | ||||
|     "com.unity.modules.xr": "1.0.0" | ||||
|   } | ||||
|     "dependencies": { | ||||
|         "com.unity.collab-proxy": "2.6.0", | ||||
|         "com.unity.feature.2d": "2.0.1", | ||||
|         "com.unity.ide.rider": "3.0.31", | ||||
|         "com.unity.ide.visualstudio": "2.0.22", | ||||
|         "com.unity.inputsystem": "1.11.2", | ||||
|         "com.unity.multiplayer.center": "1.0.0", | ||||
|         "com.unity.test-framework": "1.4.5", | ||||
|         "com.unity.timeline": "1.8.7", | ||||
|         "com.unity.ugui": "2.0.0", | ||||
|         "com.unity.visualscripting": "1.9.4", | ||||
|         "com.unity.modules.accessibility": "1.0.0", | ||||
|         "com.unity.modules.ai": "1.0.0", | ||||
|         "com.unity.modules.androidjni": "1.0.0", | ||||
|         "com.unity.modules.animation": "1.0.0", | ||||
|         "com.unity.modules.assetbundle": "1.0.0", | ||||
|         "com.unity.modules.audio": "1.0.0", | ||||
|         "com.unity.modules.cloth": "1.0.0", | ||||
|         "com.unity.modules.director": "1.0.0", | ||||
|         "com.unity.modules.imageconversion": "1.0.0", | ||||
|         "com.unity.modules.imgui": "1.0.0", | ||||
|         "com.unity.modules.jsonserialize": "1.0.0", | ||||
|         "com.unity.modules.particlesystem": "1.0.0", | ||||
|         "com.unity.modules.physics": "1.0.0", | ||||
|         "com.unity.modules.physics2d": "1.0.0", | ||||
|         "com.unity.modules.screencapture": "1.0.0", | ||||
|         "com.unity.modules.terrain": "1.0.0", | ||||
|         "com.unity.modules.terrainphysics": "1.0.0", | ||||
|         "com.unity.modules.tilemap": "1.0.0", | ||||
|         "com.unity.modules.ui": "1.0.0", | ||||
|         "com.unity.modules.uielements": "1.0.0", | ||||
|         "com.unity.modules.umbra": "1.0.0", | ||||
|         "com.unity.modules.unityanalytics": "1.0.0", | ||||
|         "com.unity.modules.unitywebrequest": "1.0.0", | ||||
|         "com.unity.modules.unitywebrequestassetbundle": "1.0.0", | ||||
|         "com.unity.modules.unitywebrequestaudio": "1.0.0", | ||||
|         "com.unity.modules.unitywebrequesttexture": "1.0.0", | ||||
|         "com.unity.modules.unitywebrequestwww": "1.0.0", | ||||
|         "com.unity.modules.vehicles": "1.0.0", | ||||
|         "com.unity.modules.video": "1.0.0", | ||||
|         "com.unity.modules.vr": "1.0.0", | ||||
|         "com.unity.modules.wind": "1.0.0", | ||||
|         "com.unity.modules.xr": "1.0.0" | ||||
|     } | ||||
| } | ||||
|   | ||||
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							| @@ -118,4 +118,4 @@ | ||||
|         "defaultInstantiationMode": 1 | ||||
|     }, | ||||
|     "newSceneOverride": 0 | ||||
| } | ||||
| } | ||||
|   | ||||
| @@ -6,6 +6,7 @@ TagManager: | ||||
|   tags: | ||||
|   - Kill | ||||
|   - Win | ||||
|   - LevelsLoader | ||||
|   layers: | ||||
|   - Default | ||||
|   - TransparentFX | ||||
|   | ||||
		Reference in New Issue
	
	Block a user