mirror of
				https://github.com/DerTyp7/example-top-down-unity.git
				synced 2025-10-31 05:17:07 +01:00 
			
		
		
		
	Merge branch 'main' into Tools
This commit is contained in:
		
							
								
								
									
										8
									
								
								Assets/Fonts.meta
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								Assets/Fonts.meta
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,8 @@ | ||||
| fileFormatVersion: 2 | ||||
| guid: abe8966a3013efb4d89db6b94c13d3e1 | ||||
| folderAsset: yes | ||||
| DefaultImporter: | ||||
|   externalObjects: {} | ||||
|   userData:  | ||||
|   assetBundleName:  | ||||
|   assetBundleVariant:  | ||||
							
								
								
									
										2346
									
								
								Assets/Fonts/Pixeled SDF.asset
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										2346
									
								
								Assets/Fonts/Pixeled SDF.asset
									
									
									
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							| @@ -1,8 +1,8 @@ | ||||
| fileFormatVersion: 2 | ||||
| guid: 2d07dbbd5e1d537489f099a8a9ecaa09 | ||||
| guid: 4311e961a11edf545ba020d711a5b017 | ||||
| NativeFormatImporter: | ||||
|   externalObjects: {} | ||||
|   mainObjectFileID: 2100000 | ||||
|   mainObjectFileID: 11400000 | ||||
|   userData:  | ||||
|   assetBundleName:  | ||||
|   assetBundleVariant:  | ||||
							
								
								
									
										
											BIN
										
									
								
								Assets/Fonts/Pixeled.ttf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								Assets/Fonts/Pixeled.ttf
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										25
									
								
								Assets/Fonts/Pixeled.ttf.meta
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								Assets/Fonts/Pixeled.ttf.meta
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,25 @@ | ||||
| fileFormatVersion: 2 | ||||
| guid: 18e434a1ced50c74c8947e26dc8c7698 | ||||
| TrueTypeFontImporter: | ||||
|   externalObjects: {} | ||||
|   serializedVersion: 4 | ||||
|   fontSize: 16 | ||||
|   forceTextureCase: -2 | ||||
|   characterSpacing: 0 | ||||
|   characterPadding: 1 | ||||
|   includeFontData: 1 | ||||
|   fontNames: | ||||
|   - Pixeled | ||||
|   fallbackFontReferences: [] | ||||
|   customCharacters:  | ||||
| <<<<<<< Updated upstream | ||||
|   fontRenderingMode: 3 | ||||
| ======= | ||||
|   fontRenderingMode: 0 | ||||
| >>>>>>> Stashed changes | ||||
|   ascentCalculationMode: 1 | ||||
|   useLegacyBoundsCalculation: 0 | ||||
|   shouldRoundAdvanceValue: 1 | ||||
|   userData:  | ||||
|   assetBundleName:  | ||||
|   assetBundleVariant:  | ||||
| @@ -1,56 +0,0 @@ | ||||
| %YAML 1.1 | ||||
| %TAG !u! tag:unity3d.com,2011: | ||||
| --- !u!21 &2100000 | ||||
| Material: | ||||
|   serializedVersion: 6 | ||||
|   m_ObjectHideFlags: 0 | ||||
|   m_CorrespondingSourceObject: {fileID: 0} | ||||
|   m_PrefabInstance: {fileID: 0} | ||||
|   m_PrefabAsset: {fileID: 0} | ||||
|   m_Name: New Material | ||||
|   m_Shader: {fileID: 4800000, guid: 13c02b14c4d048fa9653293d54f6e0e1, type: 3} | ||||
|   m_ShaderKeywords:  | ||||
|   m_LightmapFlags: 4 | ||||
|   m_EnableInstancingVariants: 0 | ||||
|   m_DoubleSidedGI: 0 | ||||
|   m_CustomRenderQueue: -1 | ||||
|   stringTagMap: {} | ||||
|   disabledShaderPasses: [] | ||||
|   m_SavedProperties: | ||||
|     serializedVersion: 3 | ||||
|     m_TexEnvs: | ||||
|     - _AlphaTex: | ||||
|         m_Texture: {fileID: 0} | ||||
|         m_Scale: {x: 1, y: 1} | ||||
|         m_Offset: {x: 0, y: 0} | ||||
|     - _MainTex: | ||||
|         m_Texture: {fileID: 0} | ||||
|         m_Scale: {x: 1, y: 1} | ||||
|         m_Offset: {x: 0, y: 0} | ||||
|     - _MaskTex: | ||||
|         m_Texture: {fileID: 0} | ||||
|         m_Scale: {x: 1, y: 1} | ||||
|         m_Offset: {x: 0, y: 0} | ||||
|     - _NormalMap: | ||||
|         m_Texture: {fileID: 0} | ||||
|         m_Scale: {x: 1, y: 1} | ||||
|         m_Offset: {x: 0, y: 0} | ||||
|     m_Ints: [] | ||||
|     m_Floats: | ||||
|     - PixelSnap: 0 | ||||
|     - _ColorMask: 15 | ||||
|     - _CullMode: 0 | ||||
|     - _Cutoff: 0 | ||||
|     - _EnableExternalAlpha: 0 | ||||
|     - _Stencil: 0 | ||||
|     - _StencilComp: 8 | ||||
|     - _StencilOp: 0 | ||||
|     - _StencilReadMask: 255 | ||||
|     - _StencilWriteMask: 255 | ||||
|     - _UseUIAlphaClip: 0 | ||||
|     m_Colors: | ||||
|     - _ClipRect: {r: -32767, g: -32767, b: 32767, a: 32767} | ||||
|     - _Color: {r: 1, g: 1, b: 1, a: 1} | ||||
|     - _Flip: {r: 1, g: 1, b: 1, a: 1} | ||||
|     - _RendererColor: {r: 1, g: 1, b: 1, a: 1} | ||||
|   m_BuildTextureStacks: [] | ||||
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
							
								
								
									
										8
									
								
								Assets/Scripts/Calendar.meta
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								Assets/Scripts/Calendar.meta
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,8 @@ | ||||
| fileFormatVersion: 2 | ||||
| guid: 419a6c97c6863fe4bba52001e71d1df1 | ||||
| folderAsset: yes | ||||
| DefaultImporter: | ||||
|   externalObjects: {} | ||||
|   userData:  | ||||
|   assetBundleName:  | ||||
|   assetBundleVariant:  | ||||
							
								
								
									
										72
									
								
								Assets/Scripts/Calendar/Calendar.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										72
									
								
								Assets/Scripts/Calendar/Calendar.cs
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,72 @@ | ||||
| using System; | ||||
| using UnityEngine; | ||||
| using UnityEngine.UI; | ||||
| using TMPro; | ||||
|  | ||||
| public class Calendar : MonoBehaviour | ||||
| { | ||||
|     TimeManager timeManager; | ||||
|     Image prevImage; | ||||
|     Transform daysTransform; | ||||
|  | ||||
|     [SerializeField] | ||||
|     Color currentDayColor; | ||||
|     Color originDayColor; | ||||
|  | ||||
|     [SerializeField] | ||||
|     TextMeshProUGUI monthText; | ||||
|     [SerializeField] | ||||
|     TextMeshProUGUI yearText; | ||||
|      | ||||
|  | ||||
|     private void Start() | ||||
|     { | ||||
|         daysTransform = transform.Find("Days"); | ||||
|         timeManager = GameObject.Find("GameManager").GetComponent<TimeManager>(); | ||||
|         originDayColor = daysTransform.Find("1").gameObject.GetComponent<Image>().color; | ||||
|     } | ||||
|  | ||||
|     void Update() | ||||
|     { | ||||
|         if(gameObject.activeSelf) | ||||
|             RefreshCalendar(); | ||||
|     } | ||||
|  | ||||
|     void RefreshCalendar() | ||||
|     { | ||||
|         DateTime dateTime = timeManager.GetDateTime(); | ||||
|  | ||||
|         int counter; | ||||
|  | ||||
|         int daysInMonth = DateTime.DaysInMonth(dateTime.Year, dateTime.Month); | ||||
|  | ||||
|         monthText.text = dateTime.ToString("MMMM"); | ||||
|         yearText.text = dateTime.ToString("yyyy"); | ||||
|  | ||||
|         counter = 1; | ||||
|         while (counter <= 31) | ||||
|         { | ||||
|             if (counter >= daysInMonth + 1) | ||||
|             { | ||||
|                 daysTransform.Find(counter.ToString()).gameObject.SetActive(false); | ||||
|             } | ||||
|             else | ||||
|             { | ||||
|                 daysTransform.Find(counter.ToString()).gameObject.SetActive(true); | ||||
|             } | ||||
|  | ||||
|             counter++; | ||||
|         } | ||||
|  | ||||
|  | ||||
|  | ||||
|         if (prevImage != daysTransform.Find(dateTime.Day.ToString()).gameObject.GetComponent<Image>()) | ||||
|         { | ||||
|             if (prevImage != null) | ||||
|                 prevImage.color = originDayColor; | ||||
|  | ||||
|             daysTransform.Find(dateTime.Day.ToString()).gameObject.GetComponent<Image>().color = currentDayColor; | ||||
|             prevImage = daysTransform.Find(dateTime.Day.ToString()).gameObject.GetComponent<Image>(); | ||||
|         } | ||||
|     } | ||||
| } | ||||
							
								
								
									
										11
									
								
								Assets/Scripts/Calendar/Calendar.cs.meta
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								Assets/Scripts/Calendar/Calendar.cs.meta
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,11 @@ | ||||
| fileFormatVersion: 2 | ||||
| guid: 96c62da3e09569940847187705433290 | ||||
| MonoImporter: | ||||
|   externalObjects: {} | ||||
|   serializedVersion: 2 | ||||
|   defaultReferences: [] | ||||
|   executionOrder: 0 | ||||
|   icon: {instanceID: 0} | ||||
|   userData:  | ||||
|   assetBundleName:  | ||||
|   assetBundleVariant:  | ||||
							
								
								
									
										8
									
								
								Assets/Scripts/CharSprites.meta
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								Assets/Scripts/CharSprites.meta
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,8 @@ | ||||
| fileFormatVersion: 2 | ||||
| guid: 741c7832dc601f543a927012a305d288 | ||||
| folderAsset: yes | ||||
| DefaultImporter: | ||||
|   externalObjects: {} | ||||
|   userData:  | ||||
|   assetBundleName:  | ||||
|   assetBundleVariant:  | ||||
							
								
								
									
										16
									
								
								Assets/Scripts/CharSprites/0.asset
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								Assets/Scripts/CharSprites/0.asset
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,16 @@ | ||||
| %YAML 1.1 | ||||
| %TAG !u! tag:unity3d.com,2011: | ||||
| --- !u!114 &11400000 | ||||
| MonoBehaviour: | ||||
|   m_ObjectHideFlags: 0 | ||||
|   m_CorrespondingSourceObject: {fileID: 0} | ||||
|   m_PrefabInstance: {fileID: 0} | ||||
|   m_PrefabAsset: {fileID: 0} | ||||
|   m_GameObject: {fileID: 0} | ||||
|   m_Enabled: 1 | ||||
|   m_EditorHideFlags: 0 | ||||
|   m_Script: {fileID: 11500000, guid: 56080594b83657b43bd583e66fc21ec2, type: 3} | ||||
|   m_Name: 0 | ||||
|   m_EditorClassIdentifier:  | ||||
|   character: 48 | ||||
|   sprite: {fileID: -137505861, guid: 5e57c8b70699ac44aab52f27c9fdb5f3, type: 3} | ||||
							
								
								
									
										8
									
								
								Assets/Scripts/CharSprites/0.asset.meta
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								Assets/Scripts/CharSprites/0.asset.meta
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,8 @@ | ||||
| fileFormatVersion: 2 | ||||
| guid: 5cf69db9da6a3174fbf1c2db03e4d273 | ||||
| NativeFormatImporter: | ||||
|   externalObjects: {} | ||||
|   mainObjectFileID: 11400000 | ||||
|   userData:  | ||||
|   assetBundleName:  | ||||
|   assetBundleVariant:  | ||||
							
								
								
									
										16
									
								
								Assets/Scripts/CharSprites/1.asset
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								Assets/Scripts/CharSprites/1.asset
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,16 @@ | ||||
| %YAML 1.1 | ||||
| %TAG !u! tag:unity3d.com,2011: | ||||
| --- !u!114 &11400000 | ||||
| MonoBehaviour: | ||||
|   m_ObjectHideFlags: 0 | ||||
|   m_CorrespondingSourceObject: {fileID: 0} | ||||
|   m_PrefabInstance: {fileID: 0} | ||||
|   m_PrefabAsset: {fileID: 0} | ||||
|   m_GameObject: {fileID: 0} | ||||
|   m_Enabled: 1 | ||||
|   m_EditorHideFlags: 0 | ||||
|   m_Script: {fileID: 11500000, guid: 56080594b83657b43bd583e66fc21ec2, type: 3} | ||||
|   m_Name: 1 | ||||
|   m_EditorClassIdentifier:  | ||||
|   character: 49 | ||||
|   sprite: {fileID: -962980277, guid: 5e57c8b70699ac44aab52f27c9fdb5f3, type: 3} | ||||
							
								
								
									
										8
									
								
								Assets/Scripts/CharSprites/1.asset.meta
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								Assets/Scripts/CharSprites/1.asset.meta
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,8 @@ | ||||
| fileFormatVersion: 2 | ||||
| guid: f0634e776b7110740b86e03f868a8f61 | ||||
| NativeFormatImporter: | ||||
|   externalObjects: {} | ||||
|   mainObjectFileID: 11400000 | ||||
|   userData:  | ||||
|   assetBundleName:  | ||||
|   assetBundleVariant:  | ||||
							
								
								
									
										16
									
								
								Assets/Scripts/CharSprites/2.asset
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								Assets/Scripts/CharSprites/2.asset
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,16 @@ | ||||
| %YAML 1.1 | ||||
| %TAG !u! tag:unity3d.com,2011: | ||||
| --- !u!114 &11400000 | ||||
| MonoBehaviour: | ||||
|   m_ObjectHideFlags: 0 | ||||
|   m_CorrespondingSourceObject: {fileID: 0} | ||||
|   m_PrefabInstance: {fileID: 0} | ||||
|   m_PrefabAsset: {fileID: 0} | ||||
|   m_GameObject: {fileID: 0} | ||||
|   m_Enabled: 1 | ||||
|   m_EditorHideFlags: 0 | ||||
|   m_Script: {fileID: 11500000, guid: 56080594b83657b43bd583e66fc21ec2, type: 3} | ||||
|   m_Name: 2 | ||||
|   m_EditorClassIdentifier:  | ||||
|   character: 50 | ||||
|   sprite: {fileID: 487589554, guid: 5e57c8b70699ac44aab52f27c9fdb5f3, type: 3} | ||||
							
								
								
									
										8
									
								
								Assets/Scripts/CharSprites/2.asset.meta
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								Assets/Scripts/CharSprites/2.asset.meta
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,8 @@ | ||||
| fileFormatVersion: 2 | ||||
| guid: 1ccbdb38e3f0ee544abe81a6ddb0950c | ||||
| NativeFormatImporter: | ||||
|   externalObjects: {} | ||||
|   mainObjectFileID: 11400000 | ||||
|   userData:  | ||||
|   assetBundleName:  | ||||
|   assetBundleVariant:  | ||||
							
								
								
									
										16
									
								
								Assets/Scripts/CharSprites/3.asset
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								Assets/Scripts/CharSprites/3.asset
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,16 @@ | ||||
| %YAML 1.1 | ||||
| %TAG !u! tag:unity3d.com,2011: | ||||
| --- !u!114 &11400000 | ||||
| MonoBehaviour: | ||||
|   m_ObjectHideFlags: 0 | ||||
|   m_CorrespondingSourceObject: {fileID: 0} | ||||
|   m_PrefabInstance: {fileID: 0} | ||||
|   m_PrefabAsset: {fileID: 0} | ||||
|   m_GameObject: {fileID: 0} | ||||
|   m_Enabled: 1 | ||||
|   m_EditorHideFlags: 0 | ||||
|   m_Script: {fileID: 11500000, guid: 56080594b83657b43bd583e66fc21ec2, type: 3} | ||||
|   m_Name: 3 | ||||
|   m_EditorClassIdentifier:  | ||||
|   character: 51 | ||||
|   sprite: {fileID: 74470796, guid: 5e57c8b70699ac44aab52f27c9fdb5f3, type: 3} | ||||
							
								
								
									
										8
									
								
								Assets/Scripts/CharSprites/3.asset.meta
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								Assets/Scripts/CharSprites/3.asset.meta
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,8 @@ | ||||
| fileFormatVersion: 2 | ||||
| guid: ef26f62b59eb70d4194ec17eec59b1fb | ||||
| NativeFormatImporter: | ||||
|   externalObjects: {} | ||||
|   mainObjectFileID: 11400000 | ||||
|   userData:  | ||||
|   assetBundleName:  | ||||
|   assetBundleVariant:  | ||||
							
								
								
									
										16
									
								
								Assets/Scripts/CharSprites/4.asset
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								Assets/Scripts/CharSprites/4.asset
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,16 @@ | ||||
| %YAML 1.1 | ||||
| %TAG !u! tag:unity3d.com,2011: | ||||
| --- !u!114 &11400000 | ||||
| MonoBehaviour: | ||||
|   m_ObjectHideFlags: 0 | ||||
|   m_CorrespondingSourceObject: {fileID: 0} | ||||
|   m_PrefabInstance: {fileID: 0} | ||||
|   m_PrefabAsset: {fileID: 0} | ||||
|   m_GameObject: {fileID: 0} | ||||
|   m_Enabled: 1 | ||||
|   m_EditorHideFlags: 0 | ||||
|   m_Script: {fileID: 11500000, guid: 56080594b83657b43bd583e66fc21ec2, type: 3} | ||||
|   m_Name: 4 | ||||
|   m_EditorClassIdentifier:  | ||||
|   character: 52 | ||||
|   sprite: {fileID: -896167774, guid: 5e57c8b70699ac44aab52f27c9fdb5f3, type: 3} | ||||
							
								
								
									
										8
									
								
								Assets/Scripts/CharSprites/4.asset.meta
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								Assets/Scripts/CharSprites/4.asset.meta
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,8 @@ | ||||
| fileFormatVersion: 2 | ||||
| guid: 91df1f9de99188447a6d391f4fdd91a9 | ||||
| NativeFormatImporter: | ||||
|   externalObjects: {} | ||||
|   mainObjectFileID: 11400000 | ||||
|   userData:  | ||||
|   assetBundleName:  | ||||
|   assetBundleVariant:  | ||||
							
								
								
									
										16
									
								
								Assets/Scripts/CharSprites/5.asset
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								Assets/Scripts/CharSprites/5.asset
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,16 @@ | ||||
| %YAML 1.1 | ||||
| %TAG !u! tag:unity3d.com,2011: | ||||
| --- !u!114 &11400000 | ||||
| MonoBehaviour: | ||||
|   m_ObjectHideFlags: 0 | ||||
|   m_CorrespondingSourceObject: {fileID: 0} | ||||
|   m_PrefabInstance: {fileID: 0} | ||||
|   m_PrefabAsset: {fileID: 0} | ||||
|   m_GameObject: {fileID: 0} | ||||
|   m_Enabled: 1 | ||||
|   m_EditorHideFlags: 0 | ||||
|   m_Script: {fileID: 11500000, guid: 56080594b83657b43bd583e66fc21ec2, type: 3} | ||||
|   m_Name: 5 | ||||
|   m_EditorClassIdentifier:  | ||||
|   character: 53 | ||||
|   sprite: {fileID: 764630823, guid: 5e57c8b70699ac44aab52f27c9fdb5f3, type: 3} | ||||
							
								
								
									
										8
									
								
								Assets/Scripts/CharSprites/5.asset.meta
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								Assets/Scripts/CharSprites/5.asset.meta
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,8 @@ | ||||
| fileFormatVersion: 2 | ||||
| guid: a4230635bd95e104192dc0de15fe1d80 | ||||
| NativeFormatImporter: | ||||
|   externalObjects: {} | ||||
|   mainObjectFileID: 11400000 | ||||
|   userData:  | ||||
|   assetBundleName:  | ||||
|   assetBundleVariant:  | ||||
							
								
								
									
										16
									
								
								Assets/Scripts/CharSprites/6.asset
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								Assets/Scripts/CharSprites/6.asset
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,16 @@ | ||||
| %YAML 1.1 | ||||
| %TAG !u! tag:unity3d.com,2011: | ||||
| --- !u!114 &11400000 | ||||
| MonoBehaviour: | ||||
|   m_ObjectHideFlags: 0 | ||||
|   m_CorrespondingSourceObject: {fileID: 0} | ||||
|   m_PrefabInstance: {fileID: 0} | ||||
|   m_PrefabAsset: {fileID: 0} | ||||
|   m_GameObject: {fileID: 0} | ||||
|   m_Enabled: 1 | ||||
|   m_EditorHideFlags: 0 | ||||
|   m_Script: {fileID: 11500000, guid: 56080594b83657b43bd583e66fc21ec2, type: 3} | ||||
|   m_Name: 6 | ||||
|   m_EditorClassIdentifier:  | ||||
|   character: 54 | ||||
|   sprite: {fileID: 202394885, guid: 5e57c8b70699ac44aab52f27c9fdb5f3, type: 3} | ||||
							
								
								
									
										8
									
								
								Assets/Scripts/CharSprites/6.asset.meta
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								Assets/Scripts/CharSprites/6.asset.meta
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,8 @@ | ||||
| fileFormatVersion: 2 | ||||
| guid: 654dd30445678804a98c11ce29a6cc9f | ||||
| NativeFormatImporter: | ||||
|   externalObjects: {} | ||||
|   mainObjectFileID: 11400000 | ||||
|   userData:  | ||||
|   assetBundleName:  | ||||
|   assetBundleVariant:  | ||||
							
								
								
									
										16
									
								
								Assets/Scripts/CharSprites/7.asset
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								Assets/Scripts/CharSprites/7.asset
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,16 @@ | ||||
| %YAML 1.1 | ||||
| %TAG !u! tag:unity3d.com,2011: | ||||
| --- !u!114 &11400000 | ||||
| MonoBehaviour: | ||||
|   m_ObjectHideFlags: 0 | ||||
|   m_CorrespondingSourceObject: {fileID: 0} | ||||
|   m_PrefabInstance: {fileID: 0} | ||||
|   m_PrefabAsset: {fileID: 0} | ||||
|   m_GameObject: {fileID: 0} | ||||
|   m_Enabled: 1 | ||||
|   m_EditorHideFlags: 0 | ||||
|   m_Script: {fileID: 11500000, guid: 56080594b83657b43bd583e66fc21ec2, type: 3} | ||||
|   m_Name: 7 | ||||
|   m_EditorClassIdentifier:  | ||||
|   character: 55 | ||||
|   sprite: {fileID: 139823083, guid: 5e57c8b70699ac44aab52f27c9fdb5f3, type: 3} | ||||
							
								
								
									
										8
									
								
								Assets/Scripts/CharSprites/7.asset.meta
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								Assets/Scripts/CharSprites/7.asset.meta
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,8 @@ | ||||
| fileFormatVersion: 2 | ||||
| guid: 907350cffbf366f429b2ee2b1ac21fb9 | ||||
| NativeFormatImporter: | ||||
|   externalObjects: {} | ||||
|   mainObjectFileID: 11400000 | ||||
|   userData:  | ||||
|   assetBundleName:  | ||||
|   assetBundleVariant:  | ||||
							
								
								
									
										16
									
								
								Assets/Scripts/CharSprites/8.asset
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								Assets/Scripts/CharSprites/8.asset
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,16 @@ | ||||
| %YAML 1.1 | ||||
| %TAG !u! tag:unity3d.com,2011: | ||||
| --- !u!114 &11400000 | ||||
| MonoBehaviour: | ||||
|   m_ObjectHideFlags: 0 | ||||
|   m_CorrespondingSourceObject: {fileID: 0} | ||||
|   m_PrefabInstance: {fileID: 0} | ||||
|   m_PrefabAsset: {fileID: 0} | ||||
|   m_GameObject: {fileID: 0} | ||||
|   m_Enabled: 1 | ||||
|   m_EditorHideFlags: 0 | ||||
|   m_Script: {fileID: 11500000, guid: 56080594b83657b43bd583e66fc21ec2, type: 3} | ||||
|   m_Name: 8 | ||||
|   m_EditorClassIdentifier:  | ||||
|   character: 56 | ||||
|   sprite: {fileID: 1521955375, guid: 5e57c8b70699ac44aab52f27c9fdb5f3, type: 3} | ||||
							
								
								
									
										8
									
								
								Assets/Scripts/CharSprites/8.asset.meta
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								Assets/Scripts/CharSprites/8.asset.meta
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,8 @@ | ||||
| fileFormatVersion: 2 | ||||
| guid: 6a45ecd7a629b5a408b83f8d65f6a450 | ||||
| NativeFormatImporter: | ||||
|   externalObjects: {} | ||||
|   mainObjectFileID: 11400000 | ||||
|   userData:  | ||||
|   assetBundleName:  | ||||
|   assetBundleVariant:  | ||||
							
								
								
									
										16
									
								
								Assets/Scripts/CharSprites/9.asset
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								Assets/Scripts/CharSprites/9.asset
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,16 @@ | ||||
| %YAML 1.1 | ||||
| %TAG !u! tag:unity3d.com,2011: | ||||
| --- !u!114 &11400000 | ||||
| MonoBehaviour: | ||||
|   m_ObjectHideFlags: 0 | ||||
|   m_CorrespondingSourceObject: {fileID: 0} | ||||
|   m_PrefabInstance: {fileID: 0} | ||||
|   m_PrefabAsset: {fileID: 0} | ||||
|   m_GameObject: {fileID: 0} | ||||
|   m_Enabled: 1 | ||||
|   m_EditorHideFlags: 0 | ||||
|   m_Script: {fileID: 11500000, guid: 56080594b83657b43bd583e66fc21ec2, type: 3} | ||||
|   m_Name: 9 | ||||
|   m_EditorClassIdentifier:  | ||||
|   character: 57 | ||||
|   sprite: {fileID: -282099095, guid: 5e57c8b70699ac44aab52f27c9fdb5f3, type: 3} | ||||
							
								
								
									
										8
									
								
								Assets/Scripts/CharSprites/9.asset.meta
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								Assets/Scripts/CharSprites/9.asset.meta
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,8 @@ | ||||
| fileFormatVersion: 2 | ||||
| guid: 452f75a9bed11884fa0624c79e300113 | ||||
| NativeFormatImporter: | ||||
|   externalObjects: {} | ||||
|   mainObjectFileID: 11400000 | ||||
|   userData:  | ||||
|   assetBundleName:  | ||||
|   assetBundleVariant:  | ||||
							
								
								
									
										10
									
								
								Assets/Scripts/CharSprites/CharSprite.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								Assets/Scripts/CharSprites/CharSprite.cs
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,10 @@ | ||||
| using System.Collections; | ||||
| using System.Collections.Generic; | ||||
| using UnityEngine; | ||||
|  | ||||
| [CreateAssetMenu(fileName = "CharSprite", menuName = "CharSprite", order = 1)] | ||||
| public class CharSprite : ScriptableObject | ||||
| { | ||||
|     public char character; | ||||
|     public Sprite sprite; | ||||
| } | ||||
							
								
								
									
										11
									
								
								Assets/Scripts/CharSprites/CharSprite.cs.meta
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								Assets/Scripts/CharSprites/CharSprite.cs.meta
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,11 @@ | ||||
| fileFormatVersion: 2 | ||||
| guid: 56080594b83657b43bd583e66fc21ec2 | ||||
| MonoImporter: | ||||
|   externalObjects: {} | ||||
|   serializedVersion: 2 | ||||
|   defaultReferences: [] | ||||
|   executionOrder: 0 | ||||
|   icon: {instanceID: 0} | ||||
|   userData:  | ||||
|   assetBundleName:  | ||||
|   assetBundleVariant:  | ||||
							
								
								
									
										10
									
								
								Assets/Scripts/CharToSprite.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								Assets/Scripts/CharToSprite.cs
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,10 @@ | ||||
| using System.Collections; | ||||
| using System.Collections.Generic; | ||||
| using UnityEngine; | ||||
|  | ||||
| public class CharToSprite | ||||
| { | ||||
|     [SerializeField] | ||||
|     List<Sprite> sprites = new List<Sprite>(); | ||||
|  | ||||
| } | ||||
							
								
								
									
										11
									
								
								Assets/Scripts/CharToSprite.cs.meta
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								Assets/Scripts/CharToSprite.cs.meta
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,11 @@ | ||||
| fileFormatVersion: 2 | ||||
| guid: feba03cebe25b2642880b207d200fbec | ||||
| MonoImporter: | ||||
|   externalObjects: {} | ||||
|   serializedVersion: 2 | ||||
|   defaultReferences: [] | ||||
|   executionOrder: 0 | ||||
|   icon: {instanceID: 0} | ||||
|   userData:  | ||||
|   assetBundleName:  | ||||
|   assetBundleVariant:  | ||||
							
								
								
									
										8
									
								
								Assets/Scripts/Player.meta
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								Assets/Scripts/Player.meta
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,8 @@ | ||||
| fileFormatVersion: 2 | ||||
| guid: 415ae7da5bed43345b965569c9070e15 | ||||
| folderAsset: yes | ||||
| DefaultImporter: | ||||
|   externalObjects: {} | ||||
|   userData:  | ||||
|   assetBundleName:  | ||||
|   assetBundleVariant:  | ||||
							
								
								
									
										11
									
								
								Assets/Scripts/Player/Player.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								Assets/Scripts/Player/Player.cs
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,11 @@ | ||||
| using System.Collections; | ||||
| using System.Collections.Generic; | ||||
| using UnityEngine; | ||||
|  | ||||
| public class Player : MonoBehaviour | ||||
| { | ||||
|     public void Die() | ||||
|     { | ||||
|         Debug.Log("----- PLAYER DIED!!! -----"); | ||||
|     } | ||||
| } | ||||
							
								
								
									
										11
									
								
								Assets/Scripts/Player/Player.cs.meta
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								Assets/Scripts/Player/Player.cs.meta
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,11 @@ | ||||
| fileFormatVersion: 2 | ||||
| guid: 5ee4c18f008d122488cbb74c779ef5c4 | ||||
| MonoImporter: | ||||
|   externalObjects: {} | ||||
|   serializedVersion: 2 | ||||
|   defaultReferences: [] | ||||
|   executionOrder: 0 | ||||
|   icon: {instanceID: 0} | ||||
|   userData:  | ||||
|   assetBundleName:  | ||||
|   assetBundleVariant:  | ||||
| @@ -5,7 +5,14 @@ using UnityEngine; | ||||
| // Handles the player input, such as interactions | ||||
| public class PlayerController : MonoBehaviour | ||||
| { | ||||
|     [SerializeField] | ||||
|     GameObject calendar; | ||||
| 
 | ||||
|     void Update() | ||||
|     { | ||||
|         if (Input.GetButtonDown("Calendar") && calendar != null) | ||||
|         { | ||||
|             calendar.SetActive(!calendar.activeSelf); | ||||
|         } | ||||
|     } | ||||
| } | ||||
							
								
								
									
										105
									
								
								Assets/Scripts/Player/PlayerInteraction.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										105
									
								
								Assets/Scripts/Player/PlayerInteraction.cs
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,105 @@ | ||||
| using System.Collections; | ||||
| using System.Collections.Generic; | ||||
| using UnityEngine; | ||||
| using TMPro; | ||||
| using UnityEngine.UI; | ||||
| public class PlayerInteraction : MonoBehaviour | ||||
| { | ||||
|     [SerializeField] | ||||
|     TextMeshProUGUI interactionText; | ||||
|  | ||||
|     [SerializeField] | ||||
|     Image interactionProgressImg; | ||||
|  | ||||
|     void Update() | ||||
|     { | ||||
|         bool successfulHit = false; | ||||
|         RaycastHit2D hit = Physics2D.Raycast(Camera.main.ScreenToWorldPoint(Input.mousePosition), Vector2.zero); | ||||
|  | ||||
|         if(hit.collider != null) | ||||
|         { | ||||
|             Interactable interactable = hit.collider.gameObject.GetComponent<Interactable>(); | ||||
|  | ||||
|             if(interactable != null) | ||||
|             { | ||||
|                 // Debug.Log("Target Position: " + hit.collider.gameObject.transform.position); | ||||
|                 HandleInteraction(interactable); | ||||
|                 successfulHit = true; | ||||
|                 HandleInteractionText(interactable); | ||||
|                 HandleInteractionProgress(interactable); | ||||
|             }             | ||||
|         } | ||||
|  | ||||
|         if (!successfulHit) | ||||
|         { | ||||
|             interactionText.text = ""; | ||||
|             interactionProgressImg.fillAmount = 0; | ||||
|         } | ||||
|  | ||||
|     } | ||||
|  | ||||
|     void HandleInteractionProgress(Interactable interactable) | ||||
|     { | ||||
|         interactionProgressImg.fillAmount = interactable.GetHoldTime() / interactable.GetHoldDuration(); | ||||
|     } | ||||
|      | ||||
|     void HandleInteractionText(Interactable interactable) | ||||
|     { | ||||
|         interactionText.text = interactable.GetDescription(); | ||||
|         interactionText.transform.position = new Vector3(Input.mousePosition.x + interactionText.rectTransform.sizeDelta.x / 2 + 20, Input.mousePosition.y - 5, Input.mousePosition.z); | ||||
|     } | ||||
|  | ||||
|     /// <summary> | ||||
|     /// <c>HandleInteraction</c> <strong>handles the player interaction based on the Interactable.InteractionType.</strong> | ||||
|     /// </summary> | ||||
|     /// <param name="interactable"></param> | ||||
|     void HandleInteraction(Interactable interactable) | ||||
|     { | ||||
|         switch (interactable.interactionType) | ||||
|         { | ||||
|             case Interactable.InteractionType.Click: | ||||
|                 if (Input.GetButtonDown("Interact") && interactable.isInRange()) | ||||
|                 { | ||||
|                     interactable.Interact(); | ||||
|                 } | ||||
|                 break; | ||||
|             case Interactable.InteractionType.Hold: | ||||
|                 if (Input.GetButton("Interact") && interactable.isInRange()) | ||||
|                 { | ||||
|                     interactable.IncreaseHoldTime(); | ||||
|                      | ||||
|                     if(interactable.GetHoldTime() > interactable.GetHoldDuration()) | ||||
|                     { | ||||
|                         interactable.Interact(); | ||||
|                         interactable.ResetHoldTime(); | ||||
|                     } | ||||
|                 } | ||||
|                 else | ||||
|                 { | ||||
|                     interactable.ResetHoldTime(); | ||||
|                 } | ||||
|                 break; | ||||
|             case Interactable.InteractionType.Harvest: | ||||
|                 Harvestable harvestable = interactable.GetComponent<Harvestable>(); | ||||
|                 ToolItem toolItem = (ToolItem)GetComponent<InventoryController>().selectedItem; | ||||
|  | ||||
|                 bool isCorrectTool = (toolItem != null && toolItem.toolType == harvestable.toolType); | ||||
|                  | ||||
|  | ||||
|  | ||||
|                 if (Input.GetButton("Interact") && interactable.isInRange() && isCorrectTool) | ||||
|                 { | ||||
|                     harvestable.IncreaseHarvestTime(); | ||||
|  | ||||
|                     if (harvestable.GetHarvestTime() >= harvestable.GetHarvestDuration()) | ||||
|                     { | ||||
|                         harvestable.Interact(); | ||||
|                         harvestable.ResetHarvestTime(); | ||||
|                     } | ||||
|                 } | ||||
|                 break; | ||||
|             default: | ||||
|                 throw new System.Exception("Unsupported type of interactable"); | ||||
|         } | ||||
|     } | ||||
| } | ||||
							
								
								
									
										11
									
								
								Assets/Scripts/Player/PlayerInteraction.cs.meta
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								Assets/Scripts/Player/PlayerInteraction.cs.meta
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,11 @@ | ||||
| fileFormatVersion: 2 | ||||
| guid: c17c7c66da95ea747b93edf1da56ba16 | ||||
| MonoImporter: | ||||
|   externalObjects: {} | ||||
|   serializedVersion: 2 | ||||
|   defaultReferences: [] | ||||
|   executionOrder: 0 | ||||
|   icon: {instanceID: 0} | ||||
|   userData:  | ||||
|   assetBundleName:  | ||||
|   assetBundleVariant:  | ||||
							
								
								
									
										68
									
								
								Assets/Scripts/TimeManager.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										68
									
								
								Assets/Scripts/TimeManager.cs
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,68 @@ | ||||
| using System; | ||||
| using System.Globalization; | ||||
| using System.Collections.Generic; | ||||
| using UnityEngine; | ||||
|  | ||||
| public class TimeManager : MonoBehaviour | ||||
| { | ||||
|     public static Action OnTimeInterval; | ||||
|     public static TimeManager instance; | ||||
|  | ||||
|     public enum PartOfDay | ||||
|     { | ||||
|         MORNING, | ||||
|         AFTERNOON, | ||||
|         EVENING, | ||||
|         NIGHT | ||||
|     } | ||||
|  | ||||
|     public PartOfDay partOfDay; | ||||
|  | ||||
|     [SerializeField] | ||||
|     float intervalTime = 1.0f; // 1.0f -> 1 real second is 1 ingame minute | ||||
|  | ||||
|     int minutesPerInterval = 1; | ||||
|  | ||||
|     public CultureInfo cultureInfo = new CultureInfo("en-us"); | ||||
|     DateTime dateTime = new DateTime(1, 1, 1, 0, 0, 0); | ||||
|     float timer; | ||||
|  | ||||
|     public DateTime GetDateTime() => dateTime; | ||||
|      | ||||
|     public string GetTime() => dateTime.ToString("hh:mm tt", cultureInfo); | ||||
|     public string GetDate() => dateTime.ToString("dd/mm/yyyy", cultureInfo); | ||||
|     public float GetintervalTime() => intervalTime; | ||||
|      | ||||
|  | ||||
|     void Start() | ||||
|     { | ||||
|         timer = intervalTime; | ||||
|     } | ||||
|  | ||||
|     void Update() | ||||
|     { | ||||
|         timer -= Time.deltaTime; | ||||
|  | ||||
|         if (timer <= 0) | ||||
|         { | ||||
|             dateTime = dateTime.AddMinutes(minutesPerInterval); | ||||
|             CheckPartsOfDay(); | ||||
|             OnTimeInterval?.Invoke(); | ||||
|             timer = intervalTime; | ||||
|         } | ||||
|     } | ||||
|  | ||||
|     void CheckPartsOfDay() | ||||
|     { | ||||
|         if (dateTime.Hour >= 22) | ||||
|             partOfDay = PartOfDay.NIGHT; | ||||
|         else if(dateTime.Hour < 6) | ||||
|             partOfDay = PartOfDay.NIGHT; | ||||
|         else if (dateTime.Hour >= 6 && dateTime.Hour < 12) | ||||
|             partOfDay = PartOfDay.MORNING; | ||||
|         else if (dateTime.Hour >= 12 && dateTime.Hour < 17) | ||||
|             partOfDay = PartOfDay.AFTERNOON; | ||||
|         else if (dateTime.Hour >= 17 && dateTime.Hour < 22) | ||||
|             partOfDay = PartOfDay.EVENING; | ||||
|     } | ||||
| } | ||||
							
								
								
									
										11
									
								
								Assets/Scripts/TimeManager.cs.meta
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								Assets/Scripts/TimeManager.cs.meta
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,11 @@ | ||||
| fileFormatVersion: 2 | ||||
| guid: 4d46ba76ed78c6c41805320f865295d6 | ||||
| MonoImporter: | ||||
|   externalObjects: {} | ||||
|   serializedVersion: 2 | ||||
|   defaultReferences: [] | ||||
|   executionOrder: 0 | ||||
|   icon: {instanceID: 0} | ||||
|   userData:  | ||||
|   assetBundleName:  | ||||
|   assetBundleVariant:  | ||||
							
								
								
									
										24
									
								
								Assets/Scripts/TimeUI.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										24
									
								
								Assets/Scripts/TimeUI.cs
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,24 @@ | ||||
| using System; | ||||
| using System.Collections.Generic; | ||||
| using UnityEngine; | ||||
| using TMPro; | ||||
|  | ||||
| public class TimeUI : MonoBehaviour | ||||
| { | ||||
|     [SerializeField] | ||||
|     TextMeshProUGUI dateTimeText; | ||||
|     TimeManager timeManager; | ||||
|  | ||||
|     private void Start() | ||||
|     { | ||||
|         timeManager = GameObject.Find("GameManager").GetComponent<TimeManager>(); | ||||
|          | ||||
|     } | ||||
|  | ||||
|     private void Update() | ||||
|     { | ||||
|         DateTime dateTime = timeManager.GetDateTime(); | ||||
|         if (dateTimeText != null) | ||||
|             dateTimeText.text = dateTime.ToString("hh:mm tt / dd.MM.yyyy", timeManager.cultureInfo); | ||||
|     } | ||||
| } | ||||
							
								
								
									
										11
									
								
								Assets/Scripts/TimeUI.cs.meta
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								Assets/Scripts/TimeUI.cs.meta
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,11 @@ | ||||
| fileFormatVersion: 2 | ||||
| guid: e980066e5baa94e4c993240ec95348fe | ||||
| MonoImporter: | ||||
|   externalObjects: {} | ||||
|   serializedVersion: 2 | ||||
|   defaultReferences: [] | ||||
|   executionOrder: 0 | ||||
|   icon: {instanceID: 0} | ||||
|   userData:  | ||||
|   assetBundleName:  | ||||
|   assetBundleVariant:  | ||||
							
								
								
									
										59
									
								
								Assets/Scripts/Vitality.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										59
									
								
								Assets/Scripts/Vitality.cs
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,59 @@ | ||||
| using System.Collections; | ||||
| using System.Collections.Generic; | ||||
| using UnityEngine; | ||||
|  | ||||
| public class Vitality : MonoBehaviour | ||||
| {    | ||||
|     Player player; | ||||
|  | ||||
|     [Header("Vitality")] | ||||
|     [Range(0f, 1f)] | ||||
|     [SerializeField] | ||||
|     public float health = 1f; | ||||
|  | ||||
|     [Range(0f, 1f)] | ||||
|     [SerializeField] | ||||
|     public float food = 1f; | ||||
|  | ||||
|     [Range(0f, 1f)] | ||||
|     [SerializeField] | ||||
|     public float drink = 1f; | ||||
|  | ||||
|     [Header("Vitality Modifier Per Interval")] | ||||
|     [Range(0f, 50f)] | ||||
|     [SerializeField] | ||||
|     float healthModifier = 30f; | ||||
|  | ||||
|     [Range(0f, 5f)] | ||||
|     [SerializeField] | ||||
|     float foodModifier = 0.4f; | ||||
|  | ||||
|     [Range(0f, 5f)] | ||||
|     [SerializeField] | ||||
|     float drinkModifier = 0.6f; | ||||
|  | ||||
|     private void Start() | ||||
|     { | ||||
|         TimeManager.OnTimeInterval += VitalityInterval; | ||||
|         player = gameObject.GetComponent<Player>(); | ||||
|     } | ||||
|  | ||||
|      | ||||
|     void VitalityInterval() | ||||
|     { | ||||
|          | ||||
|         food -= foodModifier / 1000; | ||||
|         drink -= drinkModifier / 1000; | ||||
|  | ||||
|         if(food <= 0f || drink <= 0f) | ||||
|         { | ||||
|             health -= healthModifier / 1000; | ||||
|         } | ||||
|  | ||||
|         if(health <= 0f) | ||||
|         { | ||||
|             player.Die(); | ||||
|         } | ||||
|     } | ||||
|  | ||||
| } | ||||
							
								
								
									
										11
									
								
								Assets/Scripts/Vitality.cs.meta
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								Assets/Scripts/Vitality.cs.meta
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,11 @@ | ||||
| fileFormatVersion: 2 | ||||
| guid: 259b4dba2ac00aa4983a6562c5f4eed5 | ||||
| MonoImporter: | ||||
|   externalObjects: {} | ||||
|   serializedVersion: 2 | ||||
|   defaultReferences: [] | ||||
|   executionOrder: 0 | ||||
|   icon: {instanceID: 0} | ||||
|   userData:  | ||||
|   assetBundleName:  | ||||
|   assetBundleVariant:  | ||||
							
								
								
									
										32
									
								
								Assets/Scripts/VitalityUI.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										32
									
								
								Assets/Scripts/VitalityUI.cs
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,32 @@ | ||||
| using System.Collections; | ||||
| using System.Collections.Generic; | ||||
| using UnityEngine; | ||||
| using UnityEngine.UI; | ||||
|  | ||||
| public class VitalityUI : MonoBehaviour | ||||
| { | ||||
|     Vitality playerVitality; | ||||
|  | ||||
|     [SerializeField] | ||||
|     Image healthBar; | ||||
|  | ||||
|     [SerializeField] | ||||
|     Image foodBar; | ||||
|  | ||||
|     [SerializeField] | ||||
|     Image drinkBar; | ||||
|  | ||||
|  | ||||
|     private void Start() | ||||
|     { | ||||
|         TimeManager.OnTimeInterval += UpdateBars; | ||||
|         playerVitality = GameObject.Find("Player").GetComponent<Vitality>(); | ||||
|     } | ||||
|  | ||||
|     void UpdateBars() | ||||
|     { | ||||
|         healthBar.fillAmount = playerVitality.health; | ||||
|         foodBar.fillAmount = playerVitality.food; | ||||
|         drinkBar.fillAmount = playerVitality.drink; | ||||
|     } | ||||
| } | ||||
							
								
								
									
										11
									
								
								Assets/Scripts/VitalityUI.cs.meta
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								Assets/Scripts/VitalityUI.cs.meta
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,11 @@ | ||||
| fileFormatVersion: 2 | ||||
| guid: 4ba453e35e0237c4b8b18316c15c160c | ||||
| MonoImporter: | ||||
|   externalObjects: {} | ||||
|   serializedVersion: 2 | ||||
|   defaultReferences: [] | ||||
|   executionOrder: 0 | ||||
|   icon: {instanceID: 0} | ||||
|   userData:  | ||||
|   assetBundleName:  | ||||
|   assetBundleVariant:  | ||||
							
								
								
									
										8
									
								
								Assets/Sprites/calendarDays.meta
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								Assets/Sprites/calendarDays.meta
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,8 @@ | ||||
| fileFormatVersion: 2 | ||||
| guid: ac20b9a714900974cbe082a15ee390f4 | ||||
| folderAsset: yes | ||||
| DefaultImporter: | ||||
|   externalObjects: {} | ||||
|   userData:  | ||||
|   assetBundleName:  | ||||
|   assetBundleVariant:  | ||||
							
								
								
									
										
											BIN
										
									
								
								Assets/Sprites/calendarDays/calendarDays.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								Assets/Sprites/calendarDays/calendarDays.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| After Width: | Height: | Size: 889 B | 
							
								
								
									
										816
									
								
								Assets/Sprites/calendarDays/calendarDays.png.meta
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										816
									
								
								Assets/Sprites/calendarDays/calendarDays.png.meta
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,816 @@ | ||||
| fileFormatVersion: 2 | ||||
| guid: 816952a0613fa2545996bb0e386c96b6 | ||||
| TextureImporter: | ||||
|   internalIDToNameTable: [] | ||||
|   externalObjects: {} | ||||
|   serializedVersion: 11 | ||||
|   mipmaps: | ||||
|     mipMapMode: 0 | ||||
|     enableMipMap: 0 | ||||
|     sRGBTexture: 1 | ||||
|     linearTexture: 0 | ||||
|     fadeOut: 0 | ||||
|     borderMipMap: 0 | ||||
|     mipMapsPreserveCoverage: 0 | ||||
|     alphaTestReferenceValue: 0.5 | ||||
|     mipMapFadeDistanceStart: 1 | ||||
|     mipMapFadeDistanceEnd: 3 | ||||
|   bumpmap: | ||||
|     convertToNormalMap: 0 | ||||
|     externalNormalMap: 0 | ||||
|     heightScale: 0.25 | ||||
|     normalMapFilter: 0 | ||||
|   isReadable: 0 | ||||
|   streamingMipmaps: 0 | ||||
|   streamingMipmapsPriority: 0 | ||||
|   vTOnly: 0 | ||||
|   ignoreMasterTextureLimit: 0 | ||||
|   grayScaleToAlpha: 0 | ||||
|   generateCubemap: 6 | ||||
|   cubemapConvolution: 0 | ||||
|   seamlessCubemap: 0 | ||||
|   textureFormat: 1 | ||||
|   maxTextureSize: 2048 | ||||
|   textureSettings: | ||||
|     serializedVersion: 2 | ||||
|     filterMode: 0 | ||||
|     aniso: 1 | ||||
|     mipBias: 0 | ||||
|     wrapU: 1 | ||||
|     wrapV: 1 | ||||
|     wrapW: 1 | ||||
|   nPOTScale: 0 | ||||
|   lightmap: 0 | ||||
|   compressionQuality: 50 | ||||
|   spriteMode: 2 | ||||
|   spriteExtrude: 1 | ||||
|   spriteMeshType: 1 | ||||
|   alignment: 0 | ||||
|   spritePivot: {x: 0.5, y: 0.5} | ||||
|   spritePixelsToUnits: 16 | ||||
|   spriteBorder: {x: 0, y: 0, z: 0, w: 0} | ||||
|   spriteGenerateFallbackPhysicsShape: 1 | ||||
|   alphaUsage: 1 | ||||
|   alphaIsTransparency: 1 | ||||
|   spriteTessellationDetail: -1 | ||||
|   textureType: 8 | ||||
|   textureShape: 1 | ||||
|   singleChannelComponent: 0 | ||||
|   flipbookRows: 1 | ||||
|   flipbookColumns: 1 | ||||
|   maxTextureSizeSet: 0 | ||||
|   compressionQualitySet: 0 | ||||
|   textureFormatSet: 0 | ||||
|   ignorePngGamma: 0 | ||||
|   applyGammaDecoding: 0 | ||||
|   platformSettings: | ||||
|   - serializedVersion: 3 | ||||
|     buildTarget: DefaultTexturePlatform | ||||
|     maxTextureSize: 2048 | ||||
|     resizeAlgorithm: 0 | ||||
|     textureFormat: -1 | ||||
|     textureCompression: 0 | ||||
|     compressionQuality: 50 | ||||
|     crunchedCompression: 0 | ||||
|     allowsAlphaSplitting: 0 | ||||
|     overridden: 0 | ||||
|     androidETC2FallbackOverride: 0 | ||||
|     forceMaximumCompressionQuality_BC6H_BC7: 0 | ||||
|   - serializedVersion: 3 | ||||
|     buildTarget: Standalone | ||||
|     maxTextureSize: 2048 | ||||
|     resizeAlgorithm: 0 | ||||
|     textureFormat: -1 | ||||
|     textureCompression: 1 | ||||
|     compressionQuality: 50 | ||||
|     crunchedCompression: 0 | ||||
|     allowsAlphaSplitting: 0 | ||||
|     overridden: 0 | ||||
|     androidETC2FallbackOverride: 0 | ||||
|     forceMaximumCompressionQuality_BC6H_BC7: 0 | ||||
|   - serializedVersion: 3 | ||||
|     buildTarget: Server | ||||
|     maxTextureSize: 2048 | ||||
|     resizeAlgorithm: 0 | ||||
|     textureFormat: -1 | ||||
|     textureCompression: 1 | ||||
|     compressionQuality: 50 | ||||
|     crunchedCompression: 0 | ||||
|     allowsAlphaSplitting: 0 | ||||
|     overridden: 0 | ||||
|     androidETC2FallbackOverride: 0 | ||||
|     forceMaximumCompressionQuality_BC6H_BC7: 0 | ||||
|   - serializedVersion: 3 | ||||
|     buildTarget: Windows Store Apps | ||||
|     maxTextureSize: 2048 | ||||
|     resizeAlgorithm: 0 | ||||
|     textureFormat: -1 | ||||
|     textureCompression: 1 | ||||
|     compressionQuality: 50 | ||||
|     crunchedCompression: 0 | ||||
|     allowsAlphaSplitting: 0 | ||||
|     overridden: 0 | ||||
|     androidETC2FallbackOverride: 0 | ||||
|     forceMaximumCompressionQuality_BC6H_BC7: 0 | ||||
|   spriteSheet: | ||||
|     serializedVersion: 2 | ||||
|     sprites: | ||||
|     - serializedVersion: 2 | ||||
|       name: calendarDays_0 | ||||
|       rect: | ||||
|         serializedVersion: 2 | ||||
|         x: 0 | ||||
|         y: 64 | ||||
|         width: 16 | ||||
|         height: 16 | ||||
|       alignment: 0 | ||||
|       pivot: {x: 0, y: 0} | ||||
|       border: {x: 0, y: 0, z: 0, w: 0} | ||||
|       outline: [] | ||||
|       physicsShape: [] | ||||
|       tessellationDetail: 0 | ||||
|       bones: [] | ||||
|       spriteID: 2045f4ac51e69404abca182713effb7f | ||||
|       internalID: -261325804 | ||||
|       vertices: [] | ||||
|       indices:  | ||||
|       edges: [] | ||||
|       weights: [] | ||||
|     - serializedVersion: 2 | ||||
|       name: calendarDays_1 | ||||
|       rect: | ||||
|         serializedVersion: 2 | ||||
|         x: 16 | ||||
|         y: 64 | ||||
|         width: 16 | ||||
|         height: 16 | ||||
|       alignment: 0 | ||||
|       pivot: {x: 0, y: 0} | ||||
|       border: {x: 0, y: 0, z: 0, w: 0} | ||||
|       outline: [] | ||||
|       physicsShape: [] | ||||
|       tessellationDetail: 0 | ||||
|       bones: [] | ||||
|       spriteID: 1a163c1c87f5279439a87a054b065bb4 | ||||
|       internalID: 391245166 | ||||
|       vertices: [] | ||||
|       indices:  | ||||
|       edges: [] | ||||
|       weights: [] | ||||
|     - serializedVersion: 2 | ||||
|       name: calendarDays_2 | ||||
|       rect: | ||||
|         serializedVersion: 2 | ||||
|         x: 32 | ||||
|         y: 64 | ||||
|         width: 16 | ||||
|         height: 16 | ||||
|       alignment: 0 | ||||
|       pivot: {x: 0, y: 0} | ||||
|       border: {x: 0, y: 0, z: 0, w: 0} | ||||
|       outline: [] | ||||
|       physicsShape: [] | ||||
|       tessellationDetail: 0 | ||||
|       bones: [] | ||||
|       spriteID: 9b62ad19690a29d47b2cda638672f148 | ||||
|       internalID: -1715392504 | ||||
|       vertices: [] | ||||
|       indices:  | ||||
|       edges: [] | ||||
|       weights: [] | ||||
|     - serializedVersion: 2 | ||||
|       name: calendarDays_3 | ||||
|       rect: | ||||
|         serializedVersion: 2 | ||||
|         x: 48 | ||||
|         y: 64 | ||||
|         width: 16 | ||||
|         height: 16 | ||||
|       alignment: 0 | ||||
|       pivot: {x: 0, y: 0} | ||||
|       border: {x: 0, y: 0, z: 0, w: 0} | ||||
|       outline: [] | ||||
|       physicsShape: [] | ||||
|       tessellationDetail: 0 | ||||
|       bones: [] | ||||
|       spriteID: 49be9dc0c1b37fa4ab2240823f5bdedf | ||||
|       internalID: -1370780951 | ||||
|       vertices: [] | ||||
|       indices:  | ||||
|       edges: [] | ||||
|       weights: [] | ||||
|     - serializedVersion: 2 | ||||
|       name: calendarDays_4 | ||||
|       rect: | ||||
|         serializedVersion: 2 | ||||
|         x: 64 | ||||
|         y: 64 | ||||
|         width: 16 | ||||
|         height: 16 | ||||
|       alignment: 0 | ||||
|       pivot: {x: 0, y: 0} | ||||
|       border: {x: 0, y: 0, z: 0, w: 0} | ||||
|       outline: [] | ||||
|       physicsShape: [] | ||||
|       tessellationDetail: 0 | ||||
|       bones: [] | ||||
|       spriteID: a78f9587f32bbd948be22b8029f73e1d | ||||
|       internalID: -729599409 | ||||
|       vertices: [] | ||||
|       indices:  | ||||
|       edges: [] | ||||
|       weights: [] | ||||
|     - serializedVersion: 2 | ||||
|       name: calendarDays_5 | ||||
|       rect: | ||||
|         serializedVersion: 2 | ||||
|         x: 80 | ||||
|         y: 64 | ||||
|         width: 16 | ||||
|         height: 16 | ||||
|       alignment: 0 | ||||
|       pivot: {x: 0, y: 0} | ||||
|       border: {x: 0, y: 0, z: 0, w: 0} | ||||
|       outline: [] | ||||
|       physicsShape: [] | ||||
|       tessellationDetail: 0 | ||||
|       bones: [] | ||||
|       spriteID: d20d7c17bd4470345a52a4db38783de2 | ||||
|       internalID: 1182577664 | ||||
|       vertices: [] | ||||
|       indices:  | ||||
|       edges: [] | ||||
|       weights: [] | ||||
|     - serializedVersion: 2 | ||||
|       name: calendarDays_6 | ||||
|       rect: | ||||
|         serializedVersion: 2 | ||||
|         x: 96 | ||||
|         y: 64 | ||||
|         width: 16 | ||||
|         height: 16 | ||||
|       alignment: 0 | ||||
|       pivot: {x: 0, y: 0} | ||||
|       border: {x: 0, y: 0, z: 0, w: 0} | ||||
|       outline: [] | ||||
|       physicsShape: [] | ||||
|       tessellationDetail: 0 | ||||
|       bones: [] | ||||
|       spriteID: 5e1cfaa100cf8934e85530ce2508e802 | ||||
|       internalID: 1858604693 | ||||
|       vertices: [] | ||||
|       indices:  | ||||
|       edges: [] | ||||
|       weights: [] | ||||
|     - serializedVersion: 2 | ||||
|       name: calendarDays_7 | ||||
|       rect: | ||||
|         serializedVersion: 2 | ||||
|         x: 0 | ||||
|         y: 48 | ||||
|         width: 16 | ||||
|         height: 16 | ||||
|       alignment: 0 | ||||
|       pivot: {x: 0, y: 0} | ||||
|       border: {x: 0, y: 0, z: 0, w: 0} | ||||
|       outline: [] | ||||
|       physicsShape: [] | ||||
|       tessellationDetail: 0 | ||||
|       bones: [] | ||||
|       spriteID: a8e384b2929d2fe438f4a9cb47702023 | ||||
|       internalID: -1364637880 | ||||
|       vertices: [] | ||||
|       indices:  | ||||
|       edges: [] | ||||
|       weights: [] | ||||
|     - serializedVersion: 2 | ||||
|       name: calendarDays_8 | ||||
|       rect: | ||||
|         serializedVersion: 2 | ||||
|         x: 16 | ||||
|         y: 48 | ||||
|         width: 16 | ||||
|         height: 16 | ||||
|       alignment: 0 | ||||
|       pivot: {x: 0, y: 0} | ||||
|       border: {x: 0, y: 0, z: 0, w: 0} | ||||
|       outline: [] | ||||
|       physicsShape: [] | ||||
|       tessellationDetail: 0 | ||||
|       bones: [] | ||||
|       spriteID: 286e4f2fac8ebab40b0139d4b6ef3b75 | ||||
|       internalID: -392628917 | ||||
|       vertices: [] | ||||
|       indices:  | ||||
|       edges: [] | ||||
|       weights: [] | ||||
|     - serializedVersion: 2 | ||||
|       name: calendarDays_9 | ||||
|       rect: | ||||
|         serializedVersion: 2 | ||||
|         x: 32 | ||||
|         y: 48 | ||||
|         width: 16 | ||||
|         height: 16 | ||||
|       alignment: 0 | ||||
|       pivot: {x: 0, y: 0} | ||||
|       border: {x: 0, y: 0, z: 0, w: 0} | ||||
|       outline: [] | ||||
|       physicsShape: [] | ||||
|       tessellationDetail: 0 | ||||
|       bones: [] | ||||
|       spriteID: b6314d02edd5345428fb94f0b3dfff3f | ||||
|       internalID: -1713552696 | ||||
|       vertices: [] | ||||
|       indices:  | ||||
|       edges: [] | ||||
|       weights: [] | ||||
|     - serializedVersion: 2 | ||||
|       name: calendarDays_10 | ||||
|       rect: | ||||
|         serializedVersion: 2 | ||||
|         x: 48 | ||||
|         y: 48 | ||||
|         width: 16 | ||||
|         height: 16 | ||||
|       alignment: 0 | ||||
|       pivot: {x: 0, y: 0} | ||||
|       border: {x: 0, y: 0, z: 0, w: 0} | ||||
|       outline: [] | ||||
|       physicsShape: [] | ||||
|       tessellationDetail: 0 | ||||
|       bones: [] | ||||
|       spriteID: e14405fd2292891479995e6139c8519e | ||||
|       internalID: 466992884 | ||||
|       vertices: [] | ||||
|       indices:  | ||||
|       edges: [] | ||||
|       weights: [] | ||||
|     - serializedVersion: 2 | ||||
|       name: calendarDays_11 | ||||
|       rect: | ||||
|         serializedVersion: 2 | ||||
|         x: 64 | ||||
|         y: 48 | ||||
|         width: 16 | ||||
|         height: 16 | ||||
|       alignment: 0 | ||||
|       pivot: {x: 0, y: 0} | ||||
|       border: {x: 0, y: 0, z: 0, w: 0} | ||||
|       outline: [] | ||||
|       physicsShape: [] | ||||
|       tessellationDetail: 0 | ||||
|       bones: [] | ||||
|       spriteID: 09f28848f1c698644b6b00b108921777 | ||||
|       internalID: 954346187 | ||||
|       vertices: [] | ||||
|       indices:  | ||||
|       edges: [] | ||||
|       weights: [] | ||||
|     - serializedVersion: 2 | ||||
|       name: calendarDays_12 | ||||
|       rect: | ||||
|         serializedVersion: 2 | ||||
|         x: 80 | ||||
|         y: 48 | ||||
|         width: 16 | ||||
|         height: 16 | ||||
|       alignment: 0 | ||||
|       pivot: {x: 0, y: 0} | ||||
|       border: {x: 0, y: 0, z: 0, w: 0} | ||||
|       outline: [] | ||||
|       physicsShape: [] | ||||
|       tessellationDetail: 0 | ||||
|       bones: [] | ||||
|       spriteID: c1ed3355a9fee5343ae4710ac5323d95 | ||||
|       internalID: 1224744165 | ||||
|       vertices: [] | ||||
|       indices:  | ||||
|       edges: [] | ||||
|       weights: [] | ||||
|     - serializedVersion: 2 | ||||
|       name: calendarDays_13 | ||||
|       rect: | ||||
|         serializedVersion: 2 | ||||
|         x: 96 | ||||
|         y: 48 | ||||
|         width: 16 | ||||
|         height: 16 | ||||
|       alignment: 0 | ||||
|       pivot: {x: 0, y: 0} | ||||
|       border: {x: 0, y: 0, z: 0, w: 0} | ||||
|       outline: [] | ||||
|       physicsShape: [] | ||||
|       tessellationDetail: 0 | ||||
|       bones: [] | ||||
|       spriteID: 5f29e0850682b2c45b629d22015148e5 | ||||
|       internalID: -1781247656 | ||||
|       vertices: [] | ||||
|       indices:  | ||||
|       edges: [] | ||||
|       weights: [] | ||||
|     - serializedVersion: 2 | ||||
|       name: calendarDays_14 | ||||
|       rect: | ||||
|         serializedVersion: 2 | ||||
|         x: 0 | ||||
|         y: 32 | ||||
|         width: 16 | ||||
|         height: 16 | ||||
|       alignment: 0 | ||||
|       pivot: {x: 0, y: 0} | ||||
|       border: {x: 0, y: 0, z: 0, w: 0} | ||||
|       outline: [] | ||||
|       physicsShape: [] | ||||
|       tessellationDetail: 0 | ||||
|       bones: [] | ||||
|       spriteID: 70ea5b3e546123645b0f13fea358ac46 | ||||
|       internalID: 540129709 | ||||
|       vertices: [] | ||||
|       indices:  | ||||
|       edges: [] | ||||
|       weights: [] | ||||
|     - serializedVersion: 2 | ||||
|       name: calendarDays_15 | ||||
|       rect: | ||||
|         serializedVersion: 2 | ||||
|         x: 16 | ||||
|         y: 32 | ||||
|         width: 16 | ||||
|         height: 16 | ||||
|       alignment: 0 | ||||
|       pivot: {x: 0, y: 0} | ||||
|       border: {x: 0, y: 0, z: 0, w: 0} | ||||
|       outline: [] | ||||
|       physicsShape: [] | ||||
|       tessellationDetail: 0 | ||||
|       bones: [] | ||||
|       spriteID: e8b922c6489e63a4d91185425f1f3358 | ||||
|       internalID: -1753695010 | ||||
|       vertices: [] | ||||
|       indices:  | ||||
|       edges: [] | ||||
|       weights: [] | ||||
|     - serializedVersion: 2 | ||||
|       name: calendarDays_16 | ||||
|       rect: | ||||
|         serializedVersion: 2 | ||||
|         x: 32 | ||||
|         y: 32 | ||||
|         width: 16 | ||||
|         height: 16 | ||||
|       alignment: 0 | ||||
|       pivot: {x: 0, y: 0} | ||||
|       border: {x: 0, y: 0, z: 0, w: 0} | ||||
|       outline: [] | ||||
|       physicsShape: [] | ||||
|       tessellationDetail: 0 | ||||
|       bones: [] | ||||
|       spriteID: 3273e1ee50c44c14fb373d82f40c1733 | ||||
|       internalID: -393629842 | ||||
|       vertices: [] | ||||
|       indices:  | ||||
|       edges: [] | ||||
|       weights: [] | ||||
|     - serializedVersion: 2 | ||||
|       name: calendarDays_17 | ||||
|       rect: | ||||
|         serializedVersion: 2 | ||||
|         x: 48 | ||||
|         y: 32 | ||||
|         width: 16 | ||||
|         height: 16 | ||||
|       alignment: 0 | ||||
|       pivot: {x: 0, y: 0} | ||||
|       border: {x: 0, y: 0, z: 0, w: 0} | ||||
|       outline: [] | ||||
|       physicsShape: [] | ||||
|       tessellationDetail: 0 | ||||
|       bones: [] | ||||
|       spriteID: 50fdb716e7e9c5a4ebbbb2cac0eb020f | ||||
|       internalID: -1810961499 | ||||
|       vertices: [] | ||||
|       indices:  | ||||
|       edges: [] | ||||
|       weights: [] | ||||
|     - serializedVersion: 2 | ||||
|       name: calendarDays_18 | ||||
|       rect: | ||||
|         serializedVersion: 2 | ||||
|         x: 64 | ||||
|         y: 32 | ||||
|         width: 16 | ||||
|         height: 16 | ||||
|       alignment: 0 | ||||
|       pivot: {x: 0, y: 0} | ||||
|       border: {x: 0, y: 0, z: 0, w: 0} | ||||
|       outline: [] | ||||
|       physicsShape: [] | ||||
|       tessellationDetail: 0 | ||||
|       bones: [] | ||||
|       spriteID: f9aead87902360d47b81b7d3ab22f3f6 | ||||
|       internalID: 451733019 | ||||
|       vertices: [] | ||||
|       indices:  | ||||
|       edges: [] | ||||
|       weights: [] | ||||
|     - serializedVersion: 2 | ||||
|       name: calendarDays_19 | ||||
|       rect: | ||||
|         serializedVersion: 2 | ||||
|         x: 80 | ||||
|         y: 32 | ||||
|         width: 16 | ||||
|         height: 16 | ||||
|       alignment: 0 | ||||
|       pivot: {x: 0, y: 0} | ||||
|       border: {x: 0, y: 0, z: 0, w: 0} | ||||
|       outline: [] | ||||
|       physicsShape: [] | ||||
|       tessellationDetail: 0 | ||||
|       bones: [] | ||||
|       spriteID: e3e7d187749e19e46bb4e5d77c4793b7 | ||||
|       internalID: 85174616 | ||||
|       vertices: [] | ||||
|       indices:  | ||||
|       edges: [] | ||||
|       weights: [] | ||||
|     - serializedVersion: 2 | ||||
|       name: calendarDays_20 | ||||
|       rect: | ||||
|         serializedVersion: 2 | ||||
|         x: 96 | ||||
|         y: 32 | ||||
|         width: 16 | ||||
|         height: 16 | ||||
|       alignment: 0 | ||||
|       pivot: {x: 0, y: 0} | ||||
|       border: {x: 0, y: 0, z: 0, w: 0} | ||||
|       outline: [] | ||||
|       physicsShape: [] | ||||
|       tessellationDetail: 0 | ||||
|       bones: [] | ||||
|       spriteID: d7b01512d6a330644ae0076817caaa61 | ||||
|       internalID: -489062927 | ||||
|       vertices: [] | ||||
|       indices:  | ||||
|       edges: [] | ||||
|       weights: [] | ||||
|     - serializedVersion: 2 | ||||
|       name: calendarDays_21 | ||||
|       rect: | ||||
|         serializedVersion: 2 | ||||
|         x: 0 | ||||
|         y: 16 | ||||
|         width: 16 | ||||
|         height: 16 | ||||
|       alignment: 0 | ||||
|       pivot: {x: 0, y: 0} | ||||
|       border: {x: 0, y: 0, z: 0, w: 0} | ||||
|       outline: [] | ||||
|       physicsShape: [] | ||||
|       tessellationDetail: 0 | ||||
|       bones: [] | ||||
|       spriteID: d008c5a56ee23a143bb4e680fa1d9cb2 | ||||
|       internalID: 1834514783 | ||||
|       vertices: [] | ||||
|       indices:  | ||||
|       edges: [] | ||||
|       weights: [] | ||||
|     - serializedVersion: 2 | ||||
|       name: calendarDays_22 | ||||
|       rect: | ||||
|         serializedVersion: 2 | ||||
|         x: 16 | ||||
|         y: 16 | ||||
|         width: 16 | ||||
|         height: 16 | ||||
|       alignment: 0 | ||||
|       pivot: {x: 0, y: 0} | ||||
|       border: {x: 0, y: 0, z: 0, w: 0} | ||||
|       outline: [] | ||||
|       physicsShape: [] | ||||
|       tessellationDetail: 0 | ||||
|       bones: [] | ||||
|       spriteID: 6a31f23fac3464e4aa7c254a48face1f | ||||
|       internalID: -1418832798 | ||||
|       vertices: [] | ||||
|       indices:  | ||||
|       edges: [] | ||||
|       weights: [] | ||||
|     - serializedVersion: 2 | ||||
|       name: calendarDays_23 | ||||
|       rect: | ||||
|         serializedVersion: 2 | ||||
|         x: 32 | ||||
|         y: 16 | ||||
|         width: 16 | ||||
|         height: 16 | ||||
|       alignment: 0 | ||||
|       pivot: {x: 0, y: 0} | ||||
|       border: {x: 0, y: 0, z: 0, w: 0} | ||||
|       outline: [] | ||||
|       physicsShape: [] | ||||
|       tessellationDetail: 0 | ||||
|       bones: [] | ||||
|       spriteID: 35d52aec0f3b65043a3259124c6d03b3 | ||||
|       internalID: -1779531108 | ||||
|       vertices: [] | ||||
|       indices:  | ||||
|       edges: [] | ||||
|       weights: [] | ||||
|     - serializedVersion: 2 | ||||
|       name: calendarDays_24 | ||||
|       rect: | ||||
|         serializedVersion: 2 | ||||
|         x: 48 | ||||
|         y: 16 | ||||
|         width: 16 | ||||
|         height: 16 | ||||
|       alignment: 0 | ||||
|       pivot: {x: 0, y: 0} | ||||
|       border: {x: 0, y: 0, z: 0, w: 0} | ||||
|       outline: [] | ||||
|       physicsShape: [] | ||||
|       tessellationDetail: 0 | ||||
|       bones: [] | ||||
|       spriteID: c9854d35b57974547aaac0c909472f82 | ||||
|       internalID: 275030764 | ||||
|       vertices: [] | ||||
|       indices:  | ||||
|       edges: [] | ||||
|       weights: [] | ||||
|     - serializedVersion: 2 | ||||
|       name: calendarDays_25 | ||||
|       rect: | ||||
|         serializedVersion: 2 | ||||
|         x: 64 | ||||
|         y: 16 | ||||
|         width: 16 | ||||
|         height: 16 | ||||
|       alignment: 0 | ||||
|       pivot: {x: 0, y: 0} | ||||
|       border: {x: 0, y: 0, z: 0, w: 0} | ||||
|       outline: [] | ||||
|       physicsShape: [] | ||||
|       tessellationDetail: 0 | ||||
|       bones: [] | ||||
|       spriteID: fc04ea6ff5ee0294ab479bacfcbe91d6 | ||||
|       internalID: -1688909615 | ||||
|       vertices: [] | ||||
|       indices:  | ||||
|       edges: [] | ||||
|       weights: [] | ||||
|     - serializedVersion: 2 | ||||
|       name: calendarDays_26 | ||||
|       rect: | ||||
|         serializedVersion: 2 | ||||
|         x: 80 | ||||
|         y: 16 | ||||
|         width: 16 | ||||
|         height: 16 | ||||
|       alignment: 0 | ||||
|       pivot: {x: 0, y: 0} | ||||
|       border: {x: 0, y: 0, z: 0, w: 0} | ||||
|       outline: [] | ||||
|       physicsShape: [] | ||||
|       tessellationDetail: 0 | ||||
|       bones: [] | ||||
|       spriteID: 633e8df5e5e1cbb4d83cea47bfb6f8ea | ||||
|       internalID: 464216178 | ||||
|       vertices: [] | ||||
|       indices:  | ||||
|       edges: [] | ||||
|       weights: [] | ||||
|     - serializedVersion: 2 | ||||
|       name: calendarDays_27 | ||||
|       rect: | ||||
|         serializedVersion: 2 | ||||
|         x: 96 | ||||
|         y: 16 | ||||
|         width: 16 | ||||
|         height: 16 | ||||
|       alignment: 0 | ||||
|       pivot: {x: 0, y: 0} | ||||
|       border: {x: 0, y: 0, z: 0, w: 0} | ||||
|       outline: [] | ||||
|       physicsShape: [] | ||||
|       tessellationDetail: 0 | ||||
|       bones: [] | ||||
|       spriteID: 93ee4dd3a3fec654691e6f3968683801 | ||||
|       internalID: 1516730375 | ||||
|       vertices: [] | ||||
|       indices:  | ||||
|       edges: [] | ||||
|       weights: [] | ||||
|     - serializedVersion: 2 | ||||
|       name: calendarDays_28 | ||||
|       rect: | ||||
|         serializedVersion: 2 | ||||
|         x: 0 | ||||
|         y: 0 | ||||
|         width: 16 | ||||
|         height: 16 | ||||
|       alignment: 0 | ||||
|       pivot: {x: 0, y: 0} | ||||
|       border: {x: 0, y: 0, z: 0, w: 0} | ||||
|       outline: [] | ||||
|       physicsShape: [] | ||||
|       tessellationDetail: 0 | ||||
|       bones: [] | ||||
|       spriteID: 4153abeb05d2e6246a7d67f5776e896b | ||||
|       internalID: -1789092851 | ||||
|       vertices: [] | ||||
|       indices:  | ||||
|       edges: [] | ||||
|       weights: [] | ||||
|     - serializedVersion: 2 | ||||
|       name: calendarDays_29 | ||||
|       rect: | ||||
|         serializedVersion: 2 | ||||
|         x: 16 | ||||
|         y: 0 | ||||
|         width: 16 | ||||
|         height: 16 | ||||
|       alignment: 0 | ||||
|       pivot: {x: 0, y: 0} | ||||
|       border: {x: 0, y: 0, z: 0, w: 0} | ||||
|       outline: [] | ||||
|       physicsShape: [] | ||||
|       tessellationDetail: 0 | ||||
|       bones: [] | ||||
|       spriteID: 64289de27edd8bd4081ac877ab2857c6 | ||||
|       internalID: -1243127445 | ||||
|       vertices: [] | ||||
|       indices:  | ||||
|       edges: [] | ||||
|       weights: [] | ||||
|     - serializedVersion: 2 | ||||
|       name: calendarDays_30 | ||||
|       rect: | ||||
|         serializedVersion: 2 | ||||
|         x: 32 | ||||
|         y: 0 | ||||
|         width: 16 | ||||
|         height: 16 | ||||
|       alignment: 0 | ||||
|       pivot: {x: 0, y: 0} | ||||
|       border: {x: 0, y: 0, z: 0, w: 0} | ||||
|       outline: [] | ||||
|       physicsShape: [] | ||||
|       tessellationDetail: 0 | ||||
|       bones: [] | ||||
|       spriteID: fc09e6bb117f89841bc9e55da9bf5929 | ||||
|       internalID: 12133765 | ||||
|       vertices: [] | ||||
|       indices:  | ||||
|       edges: [] | ||||
|       weights: [] | ||||
|     outline: [] | ||||
|     physicsShape: [] | ||||
|     bones: [] | ||||
|     spriteID: 5e97eb03825dee720800000000000000 | ||||
|     internalID: 0 | ||||
|     vertices: [] | ||||
|     indices:  | ||||
|     edges: [] | ||||
|     weights: [] | ||||
|     secondaryTextures: [] | ||||
|     nameFileIdTable: | ||||
|       calendarDays_14: 540129709 | ||||
|       calendarDays_17: -1810961499 | ||||
|       calendarDays_29: -1243127445 | ||||
|       calendarDays_0: -261325804 | ||||
|       calendarDays_4: -729599409 | ||||
|       calendarDays_1: 391245166 | ||||
|       calendarDays_28: -1789092851 | ||||
|       calendarDays_19: 85174616 | ||||
|       calendarDays_16: -393629842 | ||||
|       calendarDays_13: -1781247656 | ||||
|       calendarDays_2: -1715392504 | ||||
|       calendarDays_3: -1370780951 | ||||
|       calendarDays_5: 1182577664 | ||||
|       calendarDays_18: 451733019 | ||||
|       calendarDays_6: 1858604693 | ||||
|       calendarDays_23: -1779531108 | ||||
|       calendarDays_24: 275030764 | ||||
|       calendarDays_27: 1516730375 | ||||
|       calendarDays_12: 1224744165 | ||||
|       calendarDays_8: -392628917 | ||||
|       calendarDays_11: 954346187 | ||||
|       calendarDays_26: 464216178 | ||||
|       calendarDays_25: -1688909615 | ||||
|       calendarDays_30: 12133765 | ||||
|       calendarDays_9: -1713552696 | ||||
|       calendarDays_15: -1753695010 | ||||
|       calendarDays_7: -1364637880 | ||||
|       calendarDays_22: -1418832798 | ||||
|       calendarDays_20: -489062927 | ||||
|       calendarDays_21: 1834514783 | ||||
|       calendarDays_10: 466992884 | ||||
|   spritePackingTag:  | ||||
|   pSDRemoveMatte: 0 | ||||
|   pSDShowRemoveMatteOption: 0 | ||||
|   userData:  | ||||
|   assetBundleName:  | ||||
|   assetBundleVariant:  | ||||
							
								
								
									
										8
									
								
								Assets/Sprites/calendarMonths.meta
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								Assets/Sprites/calendarMonths.meta
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,8 @@ | ||||
| fileFormatVersion: 2 | ||||
| guid: 55c6521ca2f2b3d4883ae645195da3e4 | ||||
| folderAsset: yes | ||||
| DefaultImporter: | ||||
|   externalObjects: {} | ||||
|   userData:  | ||||
|   assetBundleName:  | ||||
|   assetBundleVariant:  | ||||
							
								
								
									
										
											BIN
										
									
								
								Assets/Sprites/calendarMonths/januar.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								Assets/Sprites/calendarMonths/januar.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| After Width: | Height: | Size: 200 B | 
							
								
								
									
										134
									
								
								Assets/Sprites/calendarMonths/januar.png.meta
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										134
									
								
								Assets/Sprites/calendarMonths/januar.png.meta
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,134 @@ | ||||
| fileFormatVersion: 2 | ||||
| guid: 73b522f0dee7b2c4b9808cdf64873660 | ||||
| TextureImporter: | ||||
|   internalIDToNameTable: [] | ||||
|   externalObjects: {} | ||||
|   serializedVersion: 11 | ||||
|   mipmaps: | ||||
|     mipMapMode: 0 | ||||
|     enableMipMap: 0 | ||||
|     sRGBTexture: 1 | ||||
|     linearTexture: 0 | ||||
|     fadeOut: 0 | ||||
|     borderMipMap: 0 | ||||
|     mipMapsPreserveCoverage: 0 | ||||
|     alphaTestReferenceValue: 0.5 | ||||
|     mipMapFadeDistanceStart: 1 | ||||
|     mipMapFadeDistanceEnd: 3 | ||||
|   bumpmap: | ||||
|     convertToNormalMap: 0 | ||||
|     externalNormalMap: 0 | ||||
|     heightScale: 0.25 | ||||
|     normalMapFilter: 0 | ||||
|   isReadable: 0 | ||||
|   streamingMipmaps: 0 | ||||
|   streamingMipmapsPriority: 0 | ||||
|   vTOnly: 0 | ||||
|   ignoreMasterTextureLimit: 0 | ||||
|   grayScaleToAlpha: 0 | ||||
|   generateCubemap: 6 | ||||
|   cubemapConvolution: 0 | ||||
|   seamlessCubemap: 0 | ||||
|   textureFormat: 1 | ||||
|   maxTextureSize: 2048 | ||||
|   textureSettings: | ||||
|     serializedVersion: 2 | ||||
|     filterMode: 0 | ||||
|     aniso: 1 | ||||
|     mipBias: 0 | ||||
|     wrapU: 1 | ||||
|     wrapV: 1 | ||||
|     wrapW: 1 | ||||
|   nPOTScale: 0 | ||||
|   lightmap: 0 | ||||
|   compressionQuality: 50 | ||||
|   spriteMode: 1 | ||||
|   spriteExtrude: 1 | ||||
|   spriteMeshType: 1 | ||||
|   alignment: 0 | ||||
|   spritePivot: {x: 0.5, y: 0.5} | ||||
|   spritePixelsToUnits: 16 | ||||
|   spriteBorder: {x: 0, y: 0, z: 0, w: 0} | ||||
|   spriteGenerateFallbackPhysicsShape: 1 | ||||
|   alphaUsage: 1 | ||||
|   alphaIsTransparency: 1 | ||||
|   spriteTessellationDetail: -1 | ||||
|   textureType: 8 | ||||
|   textureShape: 1 | ||||
|   singleChannelComponent: 0 | ||||
|   flipbookRows: 1 | ||||
|   flipbookColumns: 1 | ||||
|   maxTextureSizeSet: 0 | ||||
|   compressionQualitySet: 0 | ||||
|   textureFormatSet: 0 | ||||
|   ignorePngGamma: 0 | ||||
|   applyGammaDecoding: 0 | ||||
|   platformSettings: | ||||
|   - serializedVersion: 3 | ||||
|     buildTarget: DefaultTexturePlatform | ||||
|     maxTextureSize: 2048 | ||||
|     resizeAlgorithm: 0 | ||||
|     textureFormat: -1 | ||||
|     textureCompression: 0 | ||||
|     compressionQuality: 50 | ||||
|     crunchedCompression: 0 | ||||
|     allowsAlphaSplitting: 0 | ||||
|     overridden: 0 | ||||
|     androidETC2FallbackOverride: 0 | ||||
|     forceMaximumCompressionQuality_BC6H_BC7: 0 | ||||
|   - serializedVersion: 3 | ||||
|     buildTarget: Standalone | ||||
|     maxTextureSize: 2048 | ||||
|     resizeAlgorithm: 0 | ||||
|     textureFormat: -1 | ||||
|     textureCompression: 1 | ||||
|     compressionQuality: 50 | ||||
|     crunchedCompression: 0 | ||||
|     allowsAlphaSplitting: 0 | ||||
|     overridden: 0 | ||||
|     androidETC2FallbackOverride: 0 | ||||
|     forceMaximumCompressionQuality_BC6H_BC7: 0 | ||||
|   - serializedVersion: 3 | ||||
|     buildTarget: Server | ||||
|     maxTextureSize: 2048 | ||||
|     resizeAlgorithm: 0 | ||||
|     textureFormat: -1 | ||||
|     textureCompression: 1 | ||||
|     compressionQuality: 50 | ||||
|     crunchedCompression: 0 | ||||
|     allowsAlphaSplitting: 0 | ||||
|     overridden: 0 | ||||
|     androidETC2FallbackOverride: 0 | ||||
|     forceMaximumCompressionQuality_BC6H_BC7: 0 | ||||
|   - serializedVersion: 3 | ||||
|     buildTarget: Windows Store Apps | ||||
|     maxTextureSize: 2048 | ||||
|     resizeAlgorithm: 0 | ||||
|     textureFormat: -1 | ||||
|     textureCompression: 1 | ||||
|     compressionQuality: 50 | ||||
|     crunchedCompression: 0 | ||||
|     allowsAlphaSplitting: 0 | ||||
|     overridden: 0 | ||||
|     androidETC2FallbackOverride: 0 | ||||
|     forceMaximumCompressionQuality_BC6H_BC7: 0 | ||||
|   spriteSheet: | ||||
|     serializedVersion: 2 | ||||
|     sprites: [] | ||||
|     outline: [] | ||||
|     physicsShape: [] | ||||
|     bones: [] | ||||
|     spriteID: 5e97eb03825dee720800000000000000 | ||||
|     internalID: 0 | ||||
|     vertices: [] | ||||
|     indices:  | ||||
|     edges: [] | ||||
|     weights: [] | ||||
|     secondaryTextures: [] | ||||
|     nameFileIdTable: {} | ||||
|   spritePackingTag:  | ||||
|   pSDRemoveMatte: 0 | ||||
|   pSDShowRemoveMatteOption: 0 | ||||
|   userData:  | ||||
|   assetBundleName:  | ||||
|   assetBundleVariant:  | ||||
							
								
								
									
										
											BIN
										
									
								
								Assets/Sprites/digits.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								Assets/Sprites/digits.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| After Width: | Height: | Size: 284 B | 
							
								
								
									
										354
									
								
								Assets/Sprites/digits.png.meta
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										354
									
								
								Assets/Sprites/digits.png.meta
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,354 @@ | ||||
| fileFormatVersion: 2 | ||||
| guid: 5e57c8b70699ac44aab52f27c9fdb5f3 | ||||
| TextureImporter: | ||||
|   internalIDToNameTable: [] | ||||
|   externalObjects: {} | ||||
|   serializedVersion: 11 | ||||
|   mipmaps: | ||||
|     mipMapMode: 0 | ||||
|     enableMipMap: 0 | ||||
|     sRGBTexture: 1 | ||||
|     linearTexture: 0 | ||||
|     fadeOut: 0 | ||||
|     borderMipMap: 0 | ||||
|     mipMapsPreserveCoverage: 0 | ||||
|     alphaTestReferenceValue: 0.5 | ||||
|     mipMapFadeDistanceStart: 1 | ||||
|     mipMapFadeDistanceEnd: 3 | ||||
|   bumpmap: | ||||
|     convertToNormalMap: 0 | ||||
|     externalNormalMap: 0 | ||||
|     heightScale: 0.25 | ||||
|     normalMapFilter: 0 | ||||
|   isReadable: 0 | ||||
|   streamingMipmaps: 0 | ||||
|   streamingMipmapsPriority: 0 | ||||
|   vTOnly: 0 | ||||
|   ignoreMasterTextureLimit: 0 | ||||
|   grayScaleToAlpha: 0 | ||||
|   generateCubemap: 6 | ||||
|   cubemapConvolution: 0 | ||||
|   seamlessCubemap: 0 | ||||
|   textureFormat: 1 | ||||
|   maxTextureSize: 2048 | ||||
|   textureSettings: | ||||
|     serializedVersion: 2 | ||||
|     filterMode: 0 | ||||
|     aniso: 1 | ||||
|     mipBias: 0 | ||||
|     wrapU: 1 | ||||
|     wrapV: 1 | ||||
|     wrapW: 1 | ||||
|   nPOTScale: 0 | ||||
|   lightmap: 0 | ||||
|   compressionQuality: 50 | ||||
|   spriteMode: 2 | ||||
|   spriteExtrude: 1 | ||||
|   spriteMeshType: 1 | ||||
|   alignment: 0 | ||||
|   spritePivot: {x: 0.5, y: 0.5} | ||||
|   spritePixelsToUnits: 16 | ||||
|   spriteBorder: {x: 0, y: 0, z: 0, w: 0} | ||||
|   spriteGenerateFallbackPhysicsShape: 1 | ||||
|   alphaUsage: 1 | ||||
|   alphaIsTransparency: 1 | ||||
|   spriteTessellationDetail: -1 | ||||
|   textureType: 8 | ||||
|   textureShape: 1 | ||||
|   singleChannelComponent: 0 | ||||
|   flipbookRows: 1 | ||||
|   flipbookColumns: 1 | ||||
|   maxTextureSizeSet: 0 | ||||
|   compressionQualitySet: 0 | ||||
|   textureFormatSet: 0 | ||||
|   ignorePngGamma: 0 | ||||
|   applyGammaDecoding: 0 | ||||
|   platformSettings: | ||||
|   - serializedVersion: 3 | ||||
|     buildTarget: DefaultTexturePlatform | ||||
|     maxTextureSize: 2048 | ||||
|     resizeAlgorithm: 0 | ||||
|     textureFormat: -1 | ||||
|     textureCompression: 0 | ||||
|     compressionQuality: 50 | ||||
|     crunchedCompression: 0 | ||||
|     allowsAlphaSplitting: 0 | ||||
|     overridden: 0 | ||||
|     androidETC2FallbackOverride: 0 | ||||
|     forceMaximumCompressionQuality_BC6H_BC7: 0 | ||||
|   - serializedVersion: 3 | ||||
|     buildTarget: Standalone | ||||
|     maxTextureSize: 2048 | ||||
|     resizeAlgorithm: 0 | ||||
|     textureFormat: -1 | ||||
|     textureCompression: 1 | ||||
|     compressionQuality: 50 | ||||
|     crunchedCompression: 0 | ||||
|     allowsAlphaSplitting: 0 | ||||
|     overridden: 0 | ||||
|     androidETC2FallbackOverride: 0 | ||||
|     forceMaximumCompressionQuality_BC6H_BC7: 0 | ||||
|   - serializedVersion: 3 | ||||
|     buildTarget: Server | ||||
|     maxTextureSize: 2048 | ||||
|     resizeAlgorithm: 0 | ||||
|     textureFormat: -1 | ||||
|     textureCompression: 1 | ||||
|     compressionQuality: 50 | ||||
|     crunchedCompression: 0 | ||||
|     allowsAlphaSplitting: 0 | ||||
|     overridden: 0 | ||||
|     androidETC2FallbackOverride: 0 | ||||
|     forceMaximumCompressionQuality_BC6H_BC7: 0 | ||||
|   - serializedVersion: 3 | ||||
|     buildTarget: Windows Store Apps | ||||
|     maxTextureSize: 2048 | ||||
|     resizeAlgorithm: 0 | ||||
|     textureFormat: -1 | ||||
|     textureCompression: 1 | ||||
|     compressionQuality: 50 | ||||
|     crunchedCompression: 0 | ||||
|     allowsAlphaSplitting: 0 | ||||
|     overridden: 0 | ||||
|     androidETC2FallbackOverride: 0 | ||||
|     forceMaximumCompressionQuality_BC6H_BC7: 0 | ||||
|   spriteSheet: | ||||
|     serializedVersion: 2 | ||||
|     sprites: | ||||
|     - serializedVersion: 2 | ||||
|       name: digits_0 | ||||
|       rect: | ||||
|         serializedVersion: 2 | ||||
|         x: 0 | ||||
|         y: 0 | ||||
|         width: 16 | ||||
|         height: 16 | ||||
|       alignment: 0 | ||||
|       pivot: {x: 0, y: 0} | ||||
|       border: {x: 0, y: 0, z: 0, w: 0} | ||||
|       outline: [] | ||||
|       physicsShape: [] | ||||
|       tessellationDetail: 0 | ||||
|       bones: [] | ||||
|       spriteID: 027d160d8b5166447bcaceae8784d9e4 | ||||
|       internalID: -137505861 | ||||
|       vertices: [] | ||||
|       indices:  | ||||
|       edges: [] | ||||
|       weights: [] | ||||
|     - serializedVersion: 2 | ||||
|       name: digits_1 | ||||
|       rect: | ||||
|         serializedVersion: 2 | ||||
|         x: 16 | ||||
|         y: 0 | ||||
|         width: 16 | ||||
|         height: 16 | ||||
|       alignment: 0 | ||||
|       pivot: {x: 0, y: 0} | ||||
|       border: {x: 0, y: 0, z: 0, w: 0} | ||||
|       outline: [] | ||||
|       physicsShape: [] | ||||
|       tessellationDetail: 0 | ||||
|       bones: [] | ||||
|       spriteID: c3f07f3ee6ba6d84f81ab838a368b662 | ||||
|       internalID: -962980277 | ||||
|       vertices: [] | ||||
|       indices:  | ||||
|       edges: [] | ||||
|       weights: [] | ||||
|     - serializedVersion: 2 | ||||
|       name: digits_2 | ||||
|       rect: | ||||
|         serializedVersion: 2 | ||||
|         x: 32 | ||||
|         y: 0 | ||||
|         width: 16 | ||||
|         height: 16 | ||||
|       alignment: 0 | ||||
|       pivot: {x: 0, y: 0} | ||||
|       border: {x: 0, y: 0, z: 0, w: 0} | ||||
|       outline: [] | ||||
|       physicsShape: [] | ||||
|       tessellationDetail: 0 | ||||
|       bones: [] | ||||
|       spriteID: 5f074e74485eba94f904d0c34a668781 | ||||
|       internalID: 487589554 | ||||
|       vertices: [] | ||||
|       indices:  | ||||
|       edges: [] | ||||
|       weights: [] | ||||
|     - serializedVersion: 2 | ||||
|       name: digits_3 | ||||
|       rect: | ||||
|         serializedVersion: 2 | ||||
|         x: 48 | ||||
|         y: 0 | ||||
|         width: 16 | ||||
|         height: 16 | ||||
|       alignment: 0 | ||||
|       pivot: {x: 0, y: 0} | ||||
|       border: {x: 0, y: 0, z: 0, w: 0} | ||||
|       outline: [] | ||||
|       physicsShape: [] | ||||
|       tessellationDetail: 0 | ||||
|       bones: [] | ||||
|       spriteID: 2feceb754959db34f860c0a693066e88 | ||||
|       internalID: 74470796 | ||||
|       vertices: [] | ||||
|       indices:  | ||||
|       edges: [] | ||||
|       weights: [] | ||||
|     - serializedVersion: 2 | ||||
|       name: digits_4 | ||||
|       rect: | ||||
|         serializedVersion: 2 | ||||
|         x: 64 | ||||
|         y: 0 | ||||
|         width: 16 | ||||
|         height: 16 | ||||
|       alignment: 0 | ||||
|       pivot: {x: 0, y: 0} | ||||
|       border: {x: 0, y: 0, z: 0, w: 0} | ||||
|       outline: [] | ||||
|       physicsShape: [] | ||||
|       tessellationDetail: 0 | ||||
|       bones: [] | ||||
|       spriteID: 80c641f13f7ca3044b80bb79dcbb256a | ||||
|       internalID: -896167774 | ||||
|       vertices: [] | ||||
|       indices:  | ||||
|       edges: [] | ||||
|       weights: [] | ||||
|     - serializedVersion: 2 | ||||
|       name: digits_5 | ||||
|       rect: | ||||
|         serializedVersion: 2 | ||||
|         x: 80 | ||||
|         y: 0 | ||||
|         width: 16 | ||||
|         height: 16 | ||||
|       alignment: 0 | ||||
|       pivot: {x: 0, y: 0} | ||||
|       border: {x: 0, y: 0, z: 0, w: 0} | ||||
|       outline: [] | ||||
|       physicsShape: [] | ||||
|       tessellationDetail: 0 | ||||
|       bones: [] | ||||
|       spriteID: 46b874fd3b04be344b495eb44adffd11 | ||||
|       internalID: 764630823 | ||||
|       vertices: [] | ||||
|       indices:  | ||||
|       edges: [] | ||||
|       weights: [] | ||||
|     - serializedVersion: 2 | ||||
|       name: digits_6 | ||||
|       rect: | ||||
|         serializedVersion: 2 | ||||
|         x: 96 | ||||
|         y: 0 | ||||
|         width: 16 | ||||
|         height: 16 | ||||
|       alignment: 0 | ||||
|       pivot: {x: 0, y: 0} | ||||
|       border: {x: 0, y: 0, z: 0, w: 0} | ||||
|       outline: [] | ||||
|       physicsShape: [] | ||||
|       tessellationDetail: 0 | ||||
|       bones: [] | ||||
|       spriteID: b46e5be4f6710904781d091ae7e9513d | ||||
|       internalID: 202394885 | ||||
|       vertices: [] | ||||
|       indices:  | ||||
|       edges: [] | ||||
|       weights: [] | ||||
|     - serializedVersion: 2 | ||||
|       name: digits_7 | ||||
|       rect: | ||||
|         serializedVersion: 2 | ||||
|         x: 112 | ||||
|         y: 0 | ||||
|         width: 16 | ||||
|         height: 16 | ||||
|       alignment: 0 | ||||
|       pivot: {x: 0, y: 0} | ||||
|       border: {x: 0, y: 0, z: 0, w: 0} | ||||
|       outline: [] | ||||
|       physicsShape: [] | ||||
|       tessellationDetail: 0 | ||||
|       bones: [] | ||||
|       spriteID: b5932b0801866b44f84717db7b23e0b4 | ||||
|       internalID: 139823083 | ||||
|       vertices: [] | ||||
|       indices:  | ||||
|       edges: [] | ||||
|       weights: [] | ||||
|     - serializedVersion: 2 | ||||
|       name: digits_8 | ||||
|       rect: | ||||
|         serializedVersion: 2 | ||||
|         x: 128 | ||||
|         y: 0 | ||||
|         width: 16 | ||||
|         height: 16 | ||||
|       alignment: 0 | ||||
|       pivot: {x: 0, y: 0} | ||||
|       border: {x: 0, y: 0, z: 0, w: 0} | ||||
|       outline: [] | ||||
|       physicsShape: [] | ||||
|       tessellationDetail: 0 | ||||
|       bones: [] | ||||
|       spriteID: 4417aa24defdb794e92e9f2c0b13d9d9 | ||||
|       internalID: 1521955375 | ||||
|       vertices: [] | ||||
|       indices:  | ||||
|       edges: [] | ||||
|       weights: [] | ||||
|     - serializedVersion: 2 | ||||
|       name: digits_9 | ||||
|       rect: | ||||
|         serializedVersion: 2 | ||||
|         x: 144 | ||||
|         y: 0 | ||||
|         width: 16 | ||||
|         height: 16 | ||||
|       alignment: 0 | ||||
|       pivot: {x: 0, y: 0} | ||||
|       border: {x: 0, y: 0, z: 0, w: 0} | ||||
|       outline: [] | ||||
|       physicsShape: [] | ||||
|       tessellationDetail: 0 | ||||
|       bones: [] | ||||
|       spriteID: 5eb8ef8fbd034c14a9d1765416cf114e | ||||
|       internalID: -282099095 | ||||
|       vertices: [] | ||||
|       indices:  | ||||
|       edges: [] | ||||
|       weights: [] | ||||
|     outline: [] | ||||
|     physicsShape: [] | ||||
|     bones: [] | ||||
|     spriteID: 5e97eb03825dee720800000000000000 | ||||
|     internalID: 0 | ||||
|     vertices: [] | ||||
|     indices:  | ||||
|     edges: [] | ||||
|     weights: [] | ||||
|     secondaryTextures: [] | ||||
|     nameFileIdTable: | ||||
|       digits_8: 1521955375 | ||||
|       digits_2: 487589554 | ||||
|       digits_5: 764630823 | ||||
|       digits_6: 202394885 | ||||
|       digits_9: -282099095 | ||||
|       digits_0: -137505861 | ||||
|       digits_7: 139823083 | ||||
|       digits_1: -962980277 | ||||
|       digits_4: -896167774 | ||||
|       digits_3: 74470796 | ||||
|   spritePackingTag:  | ||||
|   pSDRemoveMatte: 0 | ||||
|   pSDShowRemoveMatteOption: 0 | ||||
|   userData:  | ||||
|   assetBundleName:  | ||||
|   assetBundleVariant:  | ||||
							
								
								
									
										
											BIN
										
									
								
								Assets/Sprites/year.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								Assets/Sprites/year.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| After Width: | Height: | Size: 170 B | 
							
								
								
									
										134
									
								
								Assets/Sprites/year.png.meta
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										134
									
								
								Assets/Sprites/year.png.meta
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,134 @@ | ||||
| fileFormatVersion: 2 | ||||
| guid: 8aa72d8c22fdf4e4cbc652ee9fbd7d23 | ||||
| TextureImporter: | ||||
|   internalIDToNameTable: [] | ||||
|   externalObjects: {} | ||||
|   serializedVersion: 11 | ||||
|   mipmaps: | ||||
|     mipMapMode: 0 | ||||
|     enableMipMap: 0 | ||||
|     sRGBTexture: 1 | ||||
|     linearTexture: 0 | ||||
|     fadeOut: 0 | ||||
|     borderMipMap: 0 | ||||
|     mipMapsPreserveCoverage: 0 | ||||
|     alphaTestReferenceValue: 0.5 | ||||
|     mipMapFadeDistanceStart: 1 | ||||
|     mipMapFadeDistanceEnd: 3 | ||||
|   bumpmap: | ||||
|     convertToNormalMap: 0 | ||||
|     externalNormalMap: 0 | ||||
|     heightScale: 0.25 | ||||
|     normalMapFilter: 0 | ||||
|   isReadable: 0 | ||||
|   streamingMipmaps: 0 | ||||
|   streamingMipmapsPriority: 0 | ||||
|   vTOnly: 0 | ||||
|   ignoreMasterTextureLimit: 0 | ||||
|   grayScaleToAlpha: 0 | ||||
|   generateCubemap: 6 | ||||
|   cubemapConvolution: 0 | ||||
|   seamlessCubemap: 0 | ||||
|   textureFormat: 1 | ||||
|   maxTextureSize: 2048 | ||||
|   textureSettings: | ||||
|     serializedVersion: 2 | ||||
|     filterMode: 0 | ||||
|     aniso: 1 | ||||
|     mipBias: 0 | ||||
|     wrapU: 1 | ||||
|     wrapV: 1 | ||||
|     wrapW: 1 | ||||
|   nPOTScale: 0 | ||||
|   lightmap: 0 | ||||
|   compressionQuality: 50 | ||||
|   spriteMode: 1 | ||||
|   spriteExtrude: 1 | ||||
|   spriteMeshType: 1 | ||||
|   alignment: 0 | ||||
|   spritePivot: {x: 0.5, y: 0.5} | ||||
|   spritePixelsToUnits: 16 | ||||
|   spriteBorder: {x: 0, y: 0, z: 0, w: 0} | ||||
|   spriteGenerateFallbackPhysicsShape: 1 | ||||
|   alphaUsage: 1 | ||||
|   alphaIsTransparency: 1 | ||||
|   spriteTessellationDetail: -1 | ||||
|   textureType: 8 | ||||
|   textureShape: 1 | ||||
|   singleChannelComponent: 0 | ||||
|   flipbookRows: 1 | ||||
|   flipbookColumns: 1 | ||||
|   maxTextureSizeSet: 0 | ||||
|   compressionQualitySet: 0 | ||||
|   textureFormatSet: 0 | ||||
|   ignorePngGamma: 0 | ||||
|   applyGammaDecoding: 0 | ||||
|   platformSettings: | ||||
|   - serializedVersion: 3 | ||||
|     buildTarget: DefaultTexturePlatform | ||||
|     maxTextureSize: 2048 | ||||
|     resizeAlgorithm: 0 | ||||
|     textureFormat: -1 | ||||
|     textureCompression: 0 | ||||
|     compressionQuality: 50 | ||||
|     crunchedCompression: 0 | ||||
|     allowsAlphaSplitting: 0 | ||||
|     overridden: 0 | ||||
|     androidETC2FallbackOverride: 0 | ||||
|     forceMaximumCompressionQuality_BC6H_BC7: 0 | ||||
|   - serializedVersion: 3 | ||||
|     buildTarget: Standalone | ||||
|     maxTextureSize: 2048 | ||||
|     resizeAlgorithm: 0 | ||||
|     textureFormat: -1 | ||||
|     textureCompression: 1 | ||||
|     compressionQuality: 50 | ||||
|     crunchedCompression: 0 | ||||
|     allowsAlphaSplitting: 0 | ||||
|     overridden: 0 | ||||
|     androidETC2FallbackOverride: 0 | ||||
|     forceMaximumCompressionQuality_BC6H_BC7: 0 | ||||
|   - serializedVersion: 3 | ||||
|     buildTarget: Server | ||||
|     maxTextureSize: 2048 | ||||
|     resizeAlgorithm: 0 | ||||
|     textureFormat: -1 | ||||
|     textureCompression: 1 | ||||
|     compressionQuality: 50 | ||||
|     crunchedCompression: 0 | ||||
|     allowsAlphaSplitting: 0 | ||||
|     overridden: 0 | ||||
|     androidETC2FallbackOverride: 0 | ||||
|     forceMaximumCompressionQuality_BC6H_BC7: 0 | ||||
|   - serializedVersion: 3 | ||||
|     buildTarget: Windows Store Apps | ||||
|     maxTextureSize: 2048 | ||||
|     resizeAlgorithm: 0 | ||||
|     textureFormat: -1 | ||||
|     textureCompression: 1 | ||||
|     compressionQuality: 50 | ||||
|     crunchedCompression: 0 | ||||
|     allowsAlphaSplitting: 0 | ||||
|     overridden: 0 | ||||
|     androidETC2FallbackOverride: 0 | ||||
|     forceMaximumCompressionQuality_BC6H_BC7: 0 | ||||
|   spriteSheet: | ||||
|     serializedVersion: 2 | ||||
|     sprites: [] | ||||
|     outline: [] | ||||
|     physicsShape: [] | ||||
|     bones: [] | ||||
|     spriteID: 5e97eb03825dee720800000000000000 | ||||
|     internalID: 0 | ||||
|     vertices: [] | ||||
|     indices:  | ||||
|     edges: [] | ||||
|     weights: [] | ||||
|     secondaryTextures: [] | ||||
|     nameFileIdTable: {} | ||||
|   spritePackingTag:  | ||||
|   pSDRemoveMatte: 0 | ||||
|   pSDShowRemoveMatteOption: 0 | ||||
|   userData:  | ||||
|   assetBundleName:  | ||||
|   assetBundleVariant:  | ||||
| @@ -39,6 +39,7 @@ Material: | ||||
|         m_Texture: {fileID: 0} | ||||
|         m_Scale: {x: 1, y: 1} | ||||
|         m_Offset: {x: 0, y: 0} | ||||
|     m_Ints: [] | ||||
|     m_Floats: | ||||
|     - _Ambient: 0.5 | ||||
|     - _Bevel: 0.5 | ||||
| @@ -102,6 +103,7 @@ Material: | ||||
|     - _ReflectOutlineColor: {r: 0, g: 0, b: 0, a: 1} | ||||
|     - _SpecularColor: {r: 1, g: 1, b: 1, a: 1} | ||||
|     - _UnderlayColor: {r: 0, g: 0, b: 0, a: 0.5} | ||||
|   m_BuildTextureStacks: [] | ||||
| --- !u!114 &11400000 | ||||
| MonoBehaviour: | ||||
|   m_ObjectHideFlags: 0 | ||||
| @@ -119,11 +121,11 @@ MonoBehaviour: | ||||
|   materialHashCode: 225402433 | ||||
|   m_Version: 1.1.0 | ||||
|   m_SourceFontFileGUID: 8a2b9e2a607dd2143b58c44bc32410b4 | ||||
|   m_SourceFontFile_EditorRef: {fileID: 12800000, guid: 8a2b9e2a607dd2143b58c44bc32410b4, | ||||
|     type: 3} | ||||
|   m_SourceFontFile_EditorRef: {fileID: 12800000, guid: 8a2b9e2a607dd2143b58c44bc32410b4, type: 3} | ||||
|   m_SourceFontFile: {fileID: 12800000, guid: 8a2b9e2a607dd2143b58c44bc32410b4, type: 3} | ||||
|   m_AtlasPopulationMode: 1 | ||||
|   m_FaceInfo: | ||||
|     m_FaceIndex: 0 | ||||
|     m_FamilyName: Electronic Highway Sign | ||||
|     m_StyleName: Regular | ||||
|     m_PointSize: 144 | ||||
| @@ -267,15 +269,20 @@ Texture2D: | ||||
|     Hash: 00000000000000000000000000000000 | ||||
|   m_ForcedFallbackFormat: 4 | ||||
|   m_DownscaleFallback: 0 | ||||
|   m_IsAlphaChannelOptional: 0 | ||||
|   serializedVersion: 2 | ||||
|   m_Width: 0 | ||||
|   m_Height: 0 | ||||
|   m_CompleteImageSize: 0 | ||||
|   m_MipsStripped: 0 | ||||
|   m_TextureFormat: 1 | ||||
|   m_MipCount: 1 | ||||
|   m_IsReadable: 1 | ||||
|   m_IsPreProcessed: 0 | ||||
|   m_IgnoreMasterTextureLimit: 0 | ||||
|   m_StreamingMipmaps: 0 | ||||
|   m_StreamingMipmapsPriority: 0 | ||||
|   m_VTOnly: 0 | ||||
|   m_AlphaIsTransparency: 0 | ||||
|   m_ImageCount: 1 | ||||
|   m_TextureDimension: 2 | ||||
| @@ -289,9 +296,11 @@ Texture2D: | ||||
|     m_WrapW: 0 | ||||
|   m_LightmapFormat: 0 | ||||
|   m_ColorSpace: 0 | ||||
|   m_PlatformBlob:  | ||||
|   image data: 0 | ||||
|   _typelessdata:  | ||||
|   m_StreamData: | ||||
|     serializedVersion: 2 | ||||
|     offset: 0 | ||||
|     size: 0 | ||||
|     path:  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 j.mei7
					j.mei7