mirror of
				https://github.com/boudji-ludwig-pett/cnam-geometry-dash.git
				synced 2025-06-27 11:58:51 +02:00 
			
		
		
		
	feat: stats display (#45)
This commit is contained in:
		| @@ -506,7 +506,7 @@ MonoBehaviour: | ||||
|   m_Script: {fileID: 11500000, guid: 0cd44c1031e13a943bb63640046fad76, type: 3} | ||||
|   m_Name:  | ||||
|   m_EditorClassIdentifier:  | ||||
|   m_UiScaleMode: 0 | ||||
|   m_UiScaleMode: 1 | ||||
|   m_ReferencePixelsPerUnit: 100 | ||||
|   m_ScaleFactor: 1 | ||||
|   m_ReferenceResolution: {x: 800, y: 600} | ||||
| @@ -671,6 +671,12 @@ MonoBehaviour: | ||||
|   m_Script: {fileID: 11500000, guid: 4c3543e79f987af40bbd4a51c0a334c3, type: 3} | ||||
|   m_Name:  | ||||
|   m_EditorClassIdentifier:  | ||||
|   levels: [] | ||||
|   levelCurrent: | ||||
|     name:  | ||||
|     musicName:  | ||||
|     order: 0 | ||||
|     elements: [] | ||||
| --- !u!4 &1832520163 | ||||
| Transform: | ||||
|   m_ObjectHideFlags: 0 | ||||
|   | ||||
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
							
								
								
									
										25
									
								
								Assets/Scripts/LevelsSelect/LevelProgression.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								Assets/Scripts/LevelsSelect/LevelProgression.cs
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,25 @@ | ||||
| using UnityEngine; | ||||
| using UnityEngine.UI; | ||||
|  | ||||
| public class LevelProgression : MonoBehaviour | ||||
| { | ||||
|     public Text levelProgressionText; | ||||
|  | ||||
|     public LevelsLoader levelsLoader; | ||||
|  | ||||
|     private string GetText() | ||||
|     { | ||||
|         return "Progression: "; | ||||
|     } | ||||
|  | ||||
|     public void Start() | ||||
|     { | ||||
|         levelsLoader = GameObject.FindGameObjectWithTag("LevelsLoader").GetComponent<LevelsLoader>(); | ||||
|         levelProgressionText.text = GetText(); | ||||
|     } | ||||
|  | ||||
|     public void Update() | ||||
|     { | ||||
|         levelProgressionText.text = GetText(); | ||||
|     } | ||||
| } | ||||
							
								
								
									
										2
									
								
								Assets/Scripts/LevelsSelect/LevelProgression.cs.meta
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								Assets/Scripts/LevelsSelect/LevelProgression.cs.meta
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,2 @@ | ||||
| fileFormatVersion: 2 | ||||
| guid: f53ed5a09d2704999b0f112382f62309 | ||||
							
								
								
									
										28
									
								
								Assets/Scripts/LevelsSelect/LevelTotalAttempts.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										28
									
								
								Assets/Scripts/LevelsSelect/LevelTotalAttempts.cs
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,28 @@ | ||||
| using System; | ||||
| using UnityEngine; | ||||
| using UnityEngine.UI; | ||||
|  | ||||
| public class LevelTotalAttempts : MonoBehaviour | ||||
| { | ||||
|     public Text levelTotalAttemptsText; | ||||
|  | ||||
|     public LevelsLoader levelsLoader; | ||||
|  | ||||
|     private string GetText() | ||||
|     { | ||||
|         int number = levelsLoader.levelCurrent.TotalAttempts; | ||||
|         FormattableString message = $"{number:N0}"; | ||||
|         return "Total Attempts: " + FormattableString.Invariant(message); | ||||
|     } | ||||
|  | ||||
|     public void Start() | ||||
|     { | ||||
|         levelsLoader = GameObject.FindGameObjectWithTag("LevelsLoader").GetComponent<LevelsLoader>(); | ||||
|         levelTotalAttemptsText.text = GetText(); | ||||
|     } | ||||
|  | ||||
|     public void Update() | ||||
|     { | ||||
|         levelTotalAttemptsText.text = GetText(); | ||||
|     } | ||||
| } | ||||
							
								
								
									
										2
									
								
								Assets/Scripts/LevelsSelect/LevelTotalAttempts.cs.meta
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								Assets/Scripts/LevelsSelect/LevelTotalAttempts.cs.meta
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,2 @@ | ||||
| fileFormatVersion: 2 | ||||
| guid: c2e1b06afdba22e2e801e20c56a99a30 | ||||
							
								
								
									
										28
									
								
								Assets/Scripts/LevelsSelect/LevelTotalJumps.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										28
									
								
								Assets/Scripts/LevelsSelect/LevelTotalJumps.cs
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,28 @@ | ||||
| using System; | ||||
| using UnityEngine; | ||||
| using UnityEngine.UI; | ||||
|  | ||||
| public class LevelTotalJumps : MonoBehaviour | ||||
| { | ||||
|     public Text levelTotalJumpsText; | ||||
|  | ||||
|     public LevelsLoader levelsLoader; | ||||
|  | ||||
|     private string GetText() | ||||
|     { | ||||
|         int number = levelsLoader.levelCurrent.TotalJumps; | ||||
|         FormattableString message = $"{number:N0}"; | ||||
|         return "Total Jumps: " + FormattableString.Invariant(message); | ||||
|     } | ||||
|  | ||||
|     public void Start() | ||||
|     { | ||||
|         levelsLoader = GameObject.FindGameObjectWithTag("LevelsLoader").GetComponent<LevelsLoader>(); | ||||
|         levelTotalJumpsText.text = GetText(); | ||||
|     } | ||||
|  | ||||
|     public void Update() | ||||
|     { | ||||
|         levelTotalJumpsText.text = GetText(); | ||||
|     } | ||||
| } | ||||
							
								
								
									
										2
									
								
								Assets/Scripts/LevelsSelect/LevelTotalJumps.cs.meta
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								Assets/Scripts/LevelsSelect/LevelTotalJumps.cs.meta
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,2 @@ | ||||
| fileFormatVersion: 2 | ||||
| guid: 90096cf0341a3ac178de4db506d4205c | ||||
		Reference in New Issue
	
	Block a user