Browse Source

Merge branch 'main' of http://git.joshuareason.com/Jam/GGJ_2022 into main

main
Tau-er\Bobbster 2 years ago
parent
commit
190effff70
30 changed files with 2430 additions and 168 deletions
  1. +761
    -0
      Assets/Prefabs/2D Camera.prefab
  2. +7
    -0
      Assets/Prefabs/2D Camera.prefab.meta
  3. +257
    -0
      Assets/Prefabs/Chest.prefab
  4. +7
    -0
      Assets/Prefabs/Chest.prefab.meta
  5. +982
    -0
      Assets/Prefabs/Level Manager.prefab
  6. +7
    -0
      Assets/Prefabs/Level Manager.prefab.meta
  7. +1
    -1
      Assets/Prefabs/Player.prefab
  8. BIN
      Assets/Scenes/Level 1.unity
  9. +8
    -0
      Assets/Scenes/Official Levels.meta
  10. +1
    -0
      Assets/Scenes/Official Levels/.gitkeep
  11. BIN
      Assets/Scenes/Template Level.unity
  12. +7
    -0
      Assets/Scenes/Template Level.unity.meta
  13. +137
    -137
      Assets/Scripts/Character/CharacterController2D.cs
  14. +4
    -0
      Assets/Scripts/ChestController.cs
  15. +12
    -3
      Assets/Scripts/DarknessController.cs
  16. +14
    -6
      Assets/Scripts/IntroController.cs
  17. +0
    -0
      Assets/Scripts/IntroController.cs.meta
  18. +76
    -4
      Assets/Scripts/LevelManager.cs
  19. +1
    -1
      Assets/Scripts/LevelManager.cs.meta
  20. +1
    -1
      Assets/Scripts/Shaders/Image.mat
  21. +86
    -6
      Assets/Scripts/SneakyTextController.cs
  22. +1
    -1
      Assets/Scripts/SneakyTextController.cs.meta
  23. +29
    -2
      Assets/Scripts/TimerController.cs
  24. BIN
      Assets/Variables/Runtime/freezePlayer.asset
  25. +1
    -1
      Assets/Variables/Runtime/freezePlayer.asset.meta
  26. BIN
      Assets/Variables/Runtime/isLightManual.asset
  27. +8
    -0
      Assets/Variables/Runtime/isLightManual.asset.meta
  28. BIN
      Assets/Variables/Runtime/isVictory.asset
  29. +8
    -0
      Assets/Variables/Runtime/isVictory.asset.meta
  30. BIN
      ProjectSettings/EditorBuildSettings.asset

+ 761
- 0
Assets/Prefabs/2D Camera.prefab View File

@ -0,0 +1,761 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &991955819
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 991955820}
- component: {fileID: 991955821}
- component: {fileID: 991955822}
m_Layer: 0
m_Name: clouds3
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &991955820
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 991955819}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 11.93, y: 7.36, z: 7.35}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 1980583001}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!212 &991955821
SpriteRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 991955819}
m_Enabled: 1
m_CastShadows: 0
m_ReceiveShadows: 0
m_DynamicOccludee: 1
m_MotionVectors: 1
m_LightProbeUsage: 1
m_ReflectionProbeUsage: 1
m_RayTracingMode: 0
m_RayTraceProcedural: 0
m_RenderingLayerMask: 1
m_RendererPriority: 0
m_Materials:
- {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0}
m_StaticBatchInfo:
firstSubMesh: 0
subMeshCount: 0
m_StaticBatchRoot: {fileID: 0}
m_ProbeAnchor: {fileID: 0}
m_LightProbeVolumeOverride: {fileID: 0}
m_ScaleInLightmap: 1
m_ReceiveGI: 1
m_PreserveUVs: 0
m_IgnoreNormalsForChartDetection: 0
m_ImportantGI: 0
m_StitchLightmapSeams: 1
m_SelectedEditorRenderState: 0
m_MinimumChartSize: 4
m_AutoUVMaxDistance: 0.5
m_AutoUVMaxAngle: 89
m_LightmapParameters: {fileID: 0}
m_SortingLayerID: 716755205
m_SortingLayer: -2
m_SortingOrder: -1
m_Sprite: {fileID: 21300000, guid: d91e7f5ee5db7fc4ca19c938de0f18f9, type: 3}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_FlipX: 0
m_FlipY: 0
m_DrawMode: 0
m_Size: {x: 3.38, y: 0.93}
m_AdaptiveModeThreshold: 0.5
m_SpriteTileMode: 0
m_WasSpriteAssigned: 1
m_MaskInteraction: 0
m_SpriteSortPoint: 0
--- !u!114 &991955822
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 991955819}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: c27236bc6c2676e4bbfdb1265c9f7936, type: 3}
m_Name:
m_EditorClassIdentifier:
cam: {fileID: 2742648452306802123}
parallaxEffect_x: 0.5
parallaxEffect_y: 0.75
--- !u!1 &1342333370
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1342333371}
- component: {fileID: 1342333372}
m_Layer: 0
m_Name: clouds1 (1)
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &1342333371
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1342333370}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 47.13, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 2114733606}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!212 &1342333372
SpriteRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1342333370}
m_Enabled: 1
m_CastShadows: 0
m_ReceiveShadows: 0
m_DynamicOccludee: 1
m_MotionVectors: 1
m_LightProbeUsage: 1
m_ReflectionProbeUsage: 1
m_RayTracingMode: 0
m_RayTraceProcedural: 0
m_RenderingLayerMask: 1
m_RendererPriority: 0
m_Materials:
- {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0}
m_StaticBatchInfo:
firstSubMesh: 0
subMeshCount: 0
m_StaticBatchRoot: {fileID: 0}
m_ProbeAnchor: {fileID: 0}
m_LightProbeVolumeOverride: {fileID: 0}
m_ScaleInLightmap: 1
m_ReceiveGI: 1
m_PreserveUVs: 0
m_IgnoreNormalsForChartDetection: 0
m_ImportantGI: 0
m_StitchLightmapSeams: 1
m_SelectedEditorRenderState: 0
m_MinimumChartSize: 4
m_AutoUVMaxDistance: 0.5
m_AutoUVMaxAngle: 89
m_LightmapParameters: {fileID: 0}
m_SortingLayerID: 716755205
m_SortingLayer: -2
m_SortingOrder: 1
m_Sprite: {fileID: 21300000, guid: e5836e3da1090b340858ddae5d951007, type: 3}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_FlipX: 0
m_FlipY: 0
m_DrawMode: 0
m_Size: {x: 3.73, y: 0.85}
m_AdaptiveModeThreshold: 0.5
m_SpriteTileMode: 0
m_WasSpriteAssigned: 1
m_MaskInteraction: 0
m_SpriteSortPoint: 0
--- !u!1 &1619515973
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1619515974}
- component: {fileID: 1619515975}
- component: {fileID: 1619515976}
m_Layer: 0
m_Name: sky
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &1619515974
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1619515973}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 10.84, y: 6.4, z: 7.35}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 1980583001}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!212 &1619515975
SpriteRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1619515973}
m_Enabled: 1
m_CastShadows: 0
m_ReceiveShadows: 0
m_DynamicOccludee: 1
m_MotionVectors: 1
m_LightProbeUsage: 1
m_ReflectionProbeUsage: 1
m_RayTracingMode: 0
m_RayTraceProcedural: 0
m_RenderingLayerMask: 1
m_RendererPriority: 0
m_Materials:
- {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0}
m_StaticBatchInfo:
firstSubMesh: 0
subMeshCount: 0
m_StaticBatchRoot: {fileID: 0}
m_ProbeAnchor: {fileID: 0}
m_LightProbeVolumeOverride: {fileID: 0}
m_ScaleInLightmap: 1
m_ReceiveGI: 1
m_PreserveUVs: 0
m_IgnoreNormalsForChartDetection: 0
m_ImportantGI: 0
m_StitchLightmapSeams: 1
m_SelectedEditorRenderState: 0
m_MinimumChartSize: 4
m_AutoUVMaxDistance: 0.5
m_AutoUVMaxAngle: 89
m_LightmapParameters: {fileID: 0}
m_SortingLayerID: 716755205
m_SortingLayer: -2
m_SortingOrder: -2
m_Sprite: {fileID: 21300000, guid: a7c69fe92097f3847aa94f42da7b6c71, type: 3}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_FlipX: 0
m_FlipY: 0
m_DrawMode: 0
m_Size: {x: 60, y: 42.666668}
m_AdaptiveModeThreshold: 0.5
m_SpriteTileMode: 0
m_WasSpriteAssigned: 1
m_MaskInteraction: 0
m_SpriteSortPoint: 0
--- !u!114 &1619515976
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1619515973}
m_Enabled: 0
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: c27236bc6c2676e4bbfdb1265c9f7936, type: 3}
m_Name:
m_EditorClassIdentifier:
cam: {fileID: 2742648452306802123}
parallaxEffect_x: 0.8
parallaxEffect_y: 0.9
--- !u!1 &1980583000
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1980583001}
m_Layer: 0
m_Name: Skybox
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &1980583001
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1980583000}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: -18.85, y: -2.7799995, z: 0}
m_LocalScale: {x: 0.8, y: 0.8, z: 0.8}
m_Children:
- {fileID: 1619515974}
- {fileID: 991955820}
- {fileID: 2105864170}
- {fileID: 2114733606}
m_Father: {fileID: 2742648452306802124}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &2105864169
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 2105864170}
- component: {fileID: 2105864171}
- component: {fileID: 2105864172}
m_Layer: 0
m_Name: clouds2
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &2105864170
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2105864169}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 11.59, y: 7.35, z: 7.35}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 1980583001}
m_RootOrder: 2
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!212 &2105864171
SpriteRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2105864169}
m_Enabled: 1
m_CastShadows: 0
m_ReceiveShadows: 0
m_DynamicOccludee: 1
m_MotionVectors: 1
m_LightProbeUsage: 1
m_ReflectionProbeUsage: 1
m_RayTracingMode: 0
m_RayTraceProcedural: 0
m_RenderingLayerMask: 1
m_RendererPriority: 0
m_Materials:
- {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0}
m_StaticBatchInfo:
firstSubMesh: 0
subMeshCount: 0
m_StaticBatchRoot: {fileID: 0}
m_ProbeAnchor: {fileID: 0}
m_LightProbeVolumeOverride: {fileID: 0}
m_ScaleInLightmap: 1
m_ReceiveGI: 1
m_PreserveUVs: 0
m_IgnoreNormalsForChartDetection: 0
m_ImportantGI: 0
m_StitchLightmapSeams: 1
m_SelectedEditorRenderState: 0
m_MinimumChartSize: 4
m_AutoUVMaxDistance: 0.5
m_AutoUVMaxAngle: 89
m_LightmapParameters: {fileID: 0}
m_SortingLayerID: 716755205
m_SortingLayer: -2
m_SortingOrder: 0
m_Sprite: {fileID: 21300000, guid: 68655834732f032459c9233084df4daf, type: 3}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_FlipX: 0
m_FlipY: 0
m_DrawMode: 0
m_Size: {x: 5.43, y: 0.93}
m_AdaptiveModeThreshold: 0.5
m_SpriteTileMode: 0
m_WasSpriteAssigned: 1
m_MaskInteraction: 0
m_SpriteSortPoint: 0
--- !u!114 &2105864172
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2105864169}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: c27236bc6c2676e4bbfdb1265c9f7936, type: 3}
m_Name:
m_EditorClassIdentifier:
cam: {fileID: 2742648452306802123}
parallaxEffect_x: 0.43
parallaxEffect_y: 0.7
--- !u!1 &2114733605
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 2114733606}
- component: {fileID: 2114733607}
- component: {fileID: 2114733608}
m_Layer: 0
m_Name: clouds1
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &2114733606
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2114733605}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 11.51, y: 7.9400005, z: 7.35}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:
- {fileID: 1342333371}
m_Father: {fileID: 1980583001}
m_RootOrder: 3
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!212 &2114733607
SpriteRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2114733605}
m_Enabled: 1
m_CastShadows: 0
m_ReceiveShadows: 0
m_DynamicOccludee: 1
m_MotionVectors: 1
m_LightProbeUsage: 1
m_ReflectionProbeUsage: 1
m_RayTracingMode: 0
m_RayTraceProcedural: 0
m_RenderingLayerMask: 1
m_RendererPriority: 0
m_Materials:
- {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0}
m_StaticBatchInfo:
firstSubMesh: 0
subMeshCount: 0
m_StaticBatchRoot: {fileID: 0}
m_ProbeAnchor: {fileID: 0}
m_LightProbeVolumeOverride: {fileID: 0}
m_ScaleInLightmap: 1
m_ReceiveGI: 1
m_PreserveUVs: 0
m_IgnoreNormalsForChartDetection: 0
m_ImportantGI: 0
m_StitchLightmapSeams: 1
m_SelectedEditorRenderState: 0
m_MinimumChartSize: 4
m_AutoUVMaxDistance: 0.5
m_AutoUVMaxAngle: 89
m_LightmapParameters: {fileID: 0}
m_SortingLayerID: 716755205
m_SortingLayer: -2
m_SortingOrder: 1
m_Sprite: {fileID: 21300000, guid: e5836e3da1090b340858ddae5d951007, type: 3}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_FlipX: 0
m_FlipY: 0
m_DrawMode: 0
m_Size: {x: 3.73, y: 0.85}
m_AdaptiveModeThreshold: 0.5
m_SpriteTileMode: 0
m_WasSpriteAssigned: 1
m_MaskInteraction: 0
m_SpriteSortPoint: 0
--- !u!114 &2114733608
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2114733605}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: c27236bc6c2676e4bbfdb1265c9f7936, type: 3}
m_Name:
m_EditorClassIdentifier:
cam: {fileID: 2742648452306802123}
parallaxEffect_x: 0.38
parallaxEffect_y: 0.65
--- !u!1 &2742648450655999644
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 2742648450655999647}
- component: {fileID: 2742648450655999840}
- component: {fileID: 2742648450655999646}
- component: {fileID: 2742648450655999841}
m_Layer: 0
m_Name: Camera Mask
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &2742648450655999647
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2742648450655999644}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 2742648452306802124}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!20 &2742648450655999840
Camera:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2742648450655999644}
m_Enabled: 1
serializedVersion: 2
m_ClearFlags: 2
m_BackGroundColor: {r: 0, g: 0, b: 0, a: 0}
m_projectionMatrixMode: 1
m_GateFitMode: 2
m_FOVAxisMode: 0
m_SensorSize: {x: 36, y: 24}
m_LensShift: {x: 0, y: 0}
m_FocalLength: 50
m_NormalizedViewPortRect:
serializedVersion: 2
x: 0
y: 0
width: 1
height: 1
near clip plane: 0.3
far clip plane: 1000
field of view: 60
orthographic: 1
orthographic size: 10
m_Depth: 0
m_CullingMask:
serializedVersion: 2
m_Bits: 384
m_RenderingPath: -1
m_TargetTexture: {fileID: 8400000, guid: 0df5fbf4e7b2d3240bfba78506bbd0b5, type: 2}
m_TargetDisplay: 0
m_TargetEye: 3
m_HDR: 1
m_AllowMSAA: 1
m_AllowDynamicResolution: 0
m_ForceIntoRT: 0
m_OcclusionCulling: 1
m_StereoConvergence: 10
m_StereoSeparation: 0.022
--- !u!114 &2742648450655999646
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2742648450655999644}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: fa346d2e00a5d504d815877a8d9eae07, type: 3}
m_Name:
m_EditorClassIdentifier:
m_imageEffect: {fileID: 4800000, guid: 70997f99a8685d34a9333b2aab2df541, type: 3}
m_mat: {fileID: 0}
--- !u!114 &2742648450655999841
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2742648450655999644}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 6a160d838ff8b4b4693ac20007e008c7, type: 3}
m_Name:
m_EditorClassIdentifier:
m_AssetsPPU: 100
m_RefResolutionX: 1920
m_RefResolutionY: 1080
m_UpscaleRT: 0
m_PixelSnapping: 1
m_CropFrameX: 0
m_CropFrameY: 0
m_StretchFill: 0
--- !u!1 &2742648452306802123
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 2742648452306802124}
- component: {fileID: 2742648452306802125}
- component: {fileID: 2742648452306802122}
- component: {fileID: 2742648452306802127}
- component: {fileID: 2742648452306802129}
- component: {fileID: 7035977061392704193}
m_Layer: 0
m_Name: 2D Camera
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &2742648452306802124
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2742648452306802123}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: -6.9599996, y: -3.1200001, z: -7.35}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:
- {fileID: 2742648450655999647}
- {fileID: 1980583001}
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!20 &2742648452306802125
Camera:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2742648452306802123}
m_Enabled: 1
serializedVersion: 2
m_ClearFlags: 2
m_BackGroundColor: {r: 0.0501513, g: 0.11729714, b: 0.21698111, a: 0}
m_projectionMatrixMode: 1
m_GateFitMode: 2
m_FOVAxisMode: 0
m_SensorSize: {x: 36, y: 24}
m_LensShift: {x: 0, y: 0}
m_FocalLength: 50
m_NormalizedViewPortRect:
serializedVersion: 2
x: 0
y: 0
width: 1
height: 1
near clip plane: 0.1
far clip plane: 5000
field of view: 40
orthographic: 1
orthographic size: 5
m_Depth: 0
m_CullingMask:
serializedVersion: 2
m_Bits: 695
m_RenderingPath: -1
m_TargetTexture: {fileID: 0}
m_TargetDisplay: 0
m_TargetEye: 3
m_HDR: 1
m_AllowMSAA: 1
m_AllowDynamicResolution: 0
m_ForceIntoRT: 0
m_OcclusionCulling: 1
m_StereoConvergence: 10
m_StereoSeparation: 0.022
--- !u!81 &2742648452306802122
AudioListener:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2742648452306802123}
m_Enabled: 1
--- !u!114 &2742648452306802127
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2742648452306802123}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: fa346d2e00a5d504d815877a8d9eae07, type: 3}
m_Name:
m_EditorClassIdentifier:
m_imageEffect: {fileID: 0}
m_mat: {fileID: 2100000, guid: 65c1434865079454a94a84f692299fcb, type: 2}
--- !u!114 &2742648452306802129
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2742648452306802123}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 6a160d838ff8b4b4693ac20007e008c7, type: 3}
m_Name:
m_EditorClassIdentifier:
m_AssetsPPU: 100
m_RefResolutionX: 1920
m_RefResolutionY: 1080
m_UpscaleRT: 0
m_PixelSnapping: 1
m_CropFrameX: 0
m_CropFrameY: 0
m_StretchFill: 0
--- !u!114 &7035977061392704193
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2742648452306802123}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 2b7796aef2c9a634e943d7b131c0b13f, type: 3}
m_Name:
m_EditorClassIdentifier:
Player: {fileID: 0}
m_FollowStrength: 3
m_FollowX: 1
m_FollowY: 0
m_OffsetX: 0
m_OffsetY: 2

+ 7
- 0
Assets/Prefabs/2D Camera.prefab.meta View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 46792a8c76ee17f47a4fcfdc561dd936
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

+ 257
- 0
Assets/Prefabs/Chest.prefab View File

@ -0,0 +1,257 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &122265940159997672
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 122265940159997671}
- component: {fileID: 122265940159997669}
- component: {fileID: 122265940159997670}
m_Layer: 7
m_Name: castle_tileset_29
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &122265940159997671
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 122265940159997672}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 0.9141604, y: 0.93808633, z: 1}
m_Children: []
m_Father: {fileID: 122265940559413431}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!212 &122265940159997669
SpriteRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 122265940159997672}
m_Enabled: 1
m_CastShadows: 0
m_ReceiveShadows: 0
m_DynamicOccludee: 1
m_MotionVectors: 1
m_LightProbeUsage: 1
m_ReflectionProbeUsage: 1
m_RayTracingMode: 0
m_RayTraceProcedural: 0
m_RenderingLayerMask: 1
m_RendererPriority: 0
m_Materials:
- {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0}
m_StaticBatchInfo:
firstSubMesh: 0
subMeshCount: 0
m_StaticBatchRoot: {fileID: 0}
m_ProbeAnchor: {fileID: 0}
m_LightProbeVolumeOverride: {fileID: 0}
m_ScaleInLightmap: 1
m_ReceiveGI: 1
m_PreserveUVs: 0
m_IgnoreNormalsForChartDetection: 0
m_ImportantGI: 0
m_StitchLightmapSeams: 1
m_SelectedEditorRenderState: 0
m_MinimumChartSize: 4
m_AutoUVMaxDistance: 0.5
m_AutoUVMaxAngle: 89
m_LightmapParameters: {fileID: 0}
m_SortingLayerID: 0
m_SortingLayer: 0
m_SortingOrder: 0
m_Sprite: {fileID: 324862578571705095, guid: 955c0bce688a12046b99aa20d31ae763, type: 3}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_FlipX: 0
m_FlipY: 0
m_DrawMode: 0
m_Size: {x: 0.625, y: 0.5}
m_AdaptiveModeThreshold: 0.5
m_SpriteTileMode: 0
m_WasSpriteAssigned: 1
m_MaskInteraction: 0
m_SpriteSortPoint: 0
--- !u!95 &122265940159997670
Animator:
serializedVersion: 3
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 122265940159997672}
m_Enabled: 1
m_Avatar: {fileID: 0}
m_Controller: {fileID: 9100000, guid: 989ccd0906ce7254f93dc1794cfd760d, type: 2}
m_CullingMode: 0
m_UpdateMode: 0
m_ApplyRootMotion: 0
m_LinearVelocityBlending: 0
m_WarningMessage:
m_HasTransformHierarchy: 1
m_AllowConstantClipSamplingOptimization: 1
m_KeepAnimatorControllerStateOnDisable: 0
--- !u!1 &122265940559413433
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 122265940559413431}
- component: {fileID: 122265940559413432}
- component: {fileID: 122265940559413430}
- component: {fileID: 122265940559413429}
- component: {fileID: 122265940559413428}
m_Layer: 7
m_Name: Chest
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &122265940559413431
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 122265940559413433}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 1.92, y: -6.632, z: 1.11}
m_LocalScale: {x: 1.0939, y: 1.066, z: 1}
m_Children:
- {fileID: 122265940159997671}
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!212 &122265940559413432
SpriteRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 122265940559413433}
m_Enabled: 1
m_CastShadows: 0
m_ReceiveShadows: 0
m_DynamicOccludee: 1
m_MotionVectors: 1
m_LightProbeUsage: 1
m_ReflectionProbeUsage: 1
m_RayTracingMode: 0
m_RayTraceProcedural: 0
m_RenderingLayerMask: 1
m_RendererPriority: 0
m_Materials:
- {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0}
m_StaticBatchInfo:
firstSubMesh: 0
subMeshCount: 0
m_StaticBatchRoot: {fileID: 0}
m_ProbeAnchor: {fileID: 0}
m_LightProbeVolumeOverride: {fileID: 0}
m_ScaleInLightmap: 1
m_ReceiveGI: 1
m_PreserveUVs: 0
m_IgnoreNormalsForChartDetection: 0
m_ImportantGI: 0
m_StitchLightmapSeams: 1
m_SelectedEditorRenderState: 0
m_MinimumChartSize: 4
m_AutoUVMaxDistance: 0.5
m_AutoUVMaxAngle: 89
m_LightmapParameters: {fileID: 0}
m_SortingLayerID: 0
m_SortingLayer: 0
m_SortingOrder: 0
m_Sprite: {fileID: -7566060138666255044, guid: 955c0bce688a12046b99aa20d31ae763, type: 3}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_FlipX: 0
m_FlipY: 0
m_DrawMode: 0
m_Size: {x: 1.0625, y: 0.6875}
m_AdaptiveModeThreshold: 0.5
m_SpriteTileMode: 0
m_WasSpriteAssigned: 1
m_MaskInteraction: 0
m_SpriteSortPoint: 0
--- !u!95 &122265940559413430
Animator:
serializedVersion: 3
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 122265940559413433}
m_Enabled: 1
m_Avatar: {fileID: 0}
m_Controller: {fileID: 9100000, guid: f58b4b2e3b3b29a4190c3d2306d31d6d, type: 2}
m_CullingMode: 0
m_UpdateMode: 0
m_ApplyRootMotion: 0
m_LinearVelocityBlending: 0
m_WarningMessage:
m_HasTransformHierarchy: 1
m_AllowConstantClipSamplingOptimization: 1
m_KeepAnimatorControllerStateOnDisable: 0
--- !u!61 &122265940559413429
BoxCollider2D:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 122265940559413433}
m_Enabled: 1
m_Density: 1
m_Material: {fileID: 0}
m_IsTrigger: 1
m_UsedByEffector: 0
m_UsedByComposite: 0
m_Offset: {x: -0.3679093, y: 0}
m_SpriteTilingProperty:
border: {x: 0, y: 0, z: 0, w: 0}
pivot: {x: 0.5, y: 0.5}
oldSize: {x: 1.0625, y: 0.6875}
newSize: {x: 1.0625, y: 0.6875}
adaptiveTilingThreshold: 0.5
drawMode: 0
adaptiveTiling: 0
m_AutoTiling: 0
serializedVersion: 2
m_Size: {x: 1.7983186, y: 0.6875}
m_EdgeRadius: 0
--- !u!114 &122265940559413428
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 122265940559413433}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: dd401494613604146a579b8a60534ed1, type: 3}
m_Name:
m_EditorClassIdentifier:
m_chestAnimator: {fileID: 122265940559413430}
m_playerAnimator: {fileID: 0}
m_freezePlayer:
Variable: {fileID: 11400000, guid: 4644ea58ce4d81544b22caddc5e66c86, type: 2}
m_useLocal: 0
m_localValue: 0
m_isVictory:
Variable: {fileID: 11400000, guid: f1d9845714eccd24bafc361e7f23c030, type: 2}
m_useLocal: 0
m_localValue: 0

+ 7
- 0
Assets/Prefabs/Chest.prefab.meta View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 88da0d9bee66a9b47a69e6920bcdcb87
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

+ 982
- 0
Assets/Prefabs/Level Manager.prefab View File

@ -0,0 +1,982 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &5467881119753774639
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 5467881119753774636}
- component: {fileID: 5467881119753774634}
- component: {fileID: 5467881119753774637}
m_Layer: 5
m_Name: BackGround
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 0
--- !u!224 &5467881119753774636
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5467881119753774639}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 5467881120228357852}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &5467881119753774634
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5467881119753774639}
m_CullTransparentMesh: 1
--- !u!114 &5467881119753774637
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5467881119753774639}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 0.094962634, g: 0.094962634, b: 0.20754719, a: 1}
m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_Sprite: {fileID: 0}
m_Type: 0
m_PreserveAspect: 0
m_FillCenter: 1
m_FillMethod: 4
m_FillAmount: 1
m_FillClockwise: 1
m_FillOrigin: 0
m_UseSpriteMesh: 0
m_PixelsPerUnitMultiplier: 1
--- !u!1 &5467881119862407132
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 5467881119862407133}
- component: {fileID: 5467881119862407131}
- component: {fileID: 5467881119862407130}
m_Layer: 5
m_Name: Level 1
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 0
--- !u!224 &5467881119862407133
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5467881119862407132}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 3.4629, y: 3.4629, z: 3.4629}
m_Children: []
m_Father: {fileID: 5467881120228357852}
m_RootOrder: 2
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &5467881119862407131
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5467881119862407132}
m_CullTransparentMesh: 1
--- !u!114 &5467881119862407130
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5467881119862407132}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_text: Level 1
m_isRightToLeft: 0
m_fontAsset: {fileID: 11400000, guid: 20211ba66ef101c4aa909411d3b1889c, type: 2}
m_sharedMaterial: {fileID: -3032783949912112466, guid: 20211ba66ef101c4aa909411d3b1889c, type: 2}
m_fontSharedMaterials: []
m_fontMaterial: {fileID: 0}
m_fontMaterials: []
m_fontColor32:
serializedVersion: 2
rgba: 4294967295
m_fontColor: {r: 0.8862746, g: 0.86274517, b: 0.8000001, a: 1}
m_enableVertexGradient: 0
m_colorMode: 3
m_fontColorGradient:
topLeft: {r: 1, g: 1, b: 1, a: 1}
topRight: {r: 1, g: 1, b: 1, a: 1}
bottomLeft: {r: 1, g: 1, b: 1, a: 1}
bottomRight: {r: 1, g: 1, b: 1, a: 1}
m_fontColorGradientPreset: {fileID: 0}
m_spriteAsset: {fileID: 0}
m_tintAllSprites: 0
m_StyleSheet: {fileID: 0}
m_TextStyleHashCode: -1183493901
m_overrideHtmlColors: 0
m_faceColor:
serializedVersion: 2
rgba: 4294967295
m_fontSize: 28.61
m_fontSizeBase: 28.61
m_fontWeight: 400
m_enableAutoSizing: 0
m_fontSizeMin: 18
m_fontSizeMax: 72
m_fontStyle: 0
m_HorizontalAlignment: 2
m_VerticalAlignment: 512
m_textAlignment: 65535
m_characterSpacing: 0
m_wordSpacing: 0
m_lineSpacing: 0
m_lineSpacingMax: 0
m_paragraphSpacing: 0
m_charWidthMaxAdj: 0
m_enableWordWrapping: 1
m_wordWrappingRatios: 0.4
m_overflowMode: 0
m_linkedTextComponent: {fileID: 0}
parentLinkedComponent: {fileID: 0}
m_enableKerning: 1
m_enableExtraPadding: 0
checkPaddingRequired: 0
m_isRichText: 1
m_parseCtrlCharacters: 1
m_isOrthographic: 1
m_isCullingEnabled: 0
m_horizontalMapping: 0
m_verticalMapping: 0
m_uvLineOffset: 0
m_geometrySortingOrder: 0
m_IsTextObjectScaleStatic: 0
m_VertexBufferAutoSizeReduction: 0
m_useMaxVisibleDescender: 1
m_pageToDisplay: 1
m_margin: {x: 678.2656, y: 383.02994, z: 683.16376, w: 383.20734}
m_isUsingLegacyAnimationComponent: 0
m_isVolumetricText: 0
m_hasFontAssetChanged: 0
m_baseMaterial: {fileID: 0}
m_maskOffset: {x: 0, y: 0, z: 0, w: 0}
--- !u!1 &5467881120228357824
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 5467881120228357852}
- component: {fileID: 5467881120228357855}
- component: {fileID: 5467881120228357854}
- component: {fileID: 5467881120228357825}
- component: {fileID: 5467881120228357853}
m_Layer: 5
m_Name: Canvas
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &5467881120228357852
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5467881120228357824}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 0, y: 0, z: 0}
m_Children:
- {fileID: 5467881119753774636}
- {fileID: 5467881120528658814}
- {fileID: 5467881119862407133}
- {fileID: 5467881121094036214}
- {fileID: 5467881121402791726}
m_Father: {fileID: 5467881121666507904}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0, y: 0}
--- !u!223 &5467881120228357855
Canvas:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5467881120228357824}
m_Enabled: 1
serializedVersion: 3
m_RenderMode: 0
m_Camera: {fileID: 0}
m_PlaneDistance: 100
m_PixelPerfect: 0
m_ReceivesEvents: 1
m_OverrideSorting: 0
m_OverridePixelPerfect: 0
m_SortingBucketNormalizedSize: 0
m_AdditionalShaderChannelsFlag: 25
m_SortingLayerID: 0
m_SortingOrder: 0
m_TargetDisplay: 0
--- !u!114 &5467881120228357854
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5467881120228357824}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 0cd44c1031e13a943bb63640046fad76, type: 3}
m_Name:
m_EditorClassIdentifier:
m_UiScaleMode: 0
m_ReferencePixelsPerUnit: 100
m_ScaleFactor: 1
m_ReferenceResolution: {x: 800, y: 600}
m_ScreenMatchMode: 0
m_MatchWidthOrHeight: 0
m_PhysicalUnit: 3
m_FallbackScreenDPI: 96
m_DefaultSpriteDPI: 96
m_DynamicPixelsPerUnit: 1
m_PresetInfoIsWorld: 0
--- !u!114 &5467881120228357825
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5467881120228357824}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: dc42784cf147c0c48a680349fa168899, type: 3}
m_Name:
m_EditorClassIdentifier:
m_IgnoreReversedGraphics: 1
m_BlockingObjects: 0
m_BlockingMask:
serializedVersion: 2
m_Bits: 4294967295
--- !u!114 &5467881120228357853
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5467881120228357824}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: a281dfd6286be73469dae01a603699b1, type: 3}
m_Name:
m_EditorClassIdentifier:
m_levelText: {fileID: 5467881119862407130}
m_detailsText: {fileID: 5467881120528658815}
m_timerText: {fileID: 5467881121094036215}
m_goText: {fileID: 5467881121402791696}
m_freezePlayer:
Variable: {fileID: 11400000, guid: 4644ea58ce4d81544b22caddc5e66c86, type: 2}
m_useLocal: 0
m_localValue: 0
m_manager: {fileID: 5467881121666507907}
m_backGround: {fileID: 5467881119753774637}
LevelFadeTime: 2
Details1: 1
Details2: 0.1
Details3: 0.8
Fadetime: 1
gotime: 0.5
--- !u!1 &5467881120528658785
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 5467881120528658814}
- component: {fileID: 5467881120528658812}
- component: {fileID: 5467881120528658815}
m_Layer: 5
m_Name: Details
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 0
--- !u!224 &5467881120528658814
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5467881120528658785}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 3.4629, y: 3.4629, z: 3.4629}
m_Children: []
m_Father: {fileID: 5467881120228357852}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &5467881120528658812
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5467881120528658785}
m_CullTransparentMesh: 1
--- !u!114 &5467881120528658815
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5467881120528658785}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_text:
m_isRightToLeft: 0
m_fontAsset: {fileID: 11400000, guid: 20211ba66ef101c4aa909411d3b1889c, type: 2}
m_sharedMaterial: {fileID: -3032783949912112466, guid: 20211ba66ef101c4aa909411d3b1889c, type: 2}
m_fontSharedMaterials: []
m_fontMaterial: {fileID: 0}
m_fontMaterials: []
m_fontColor32:
serializedVersion: 2
rgba: 4294967295
m_fontColor: {r: 0.8862746, g: 0.86274517, b: 0.8000001, a: 1}
m_enableVertexGradient: 0
m_colorMode: 3
m_fontColorGradient:
topLeft: {r: 1, g: 1, b: 1, a: 1}
topRight: {r: 1, g: 1, b: 1, a: 1}
bottomLeft: {r: 1, g: 1, b: 1, a: 1}
bottomRight: {r: 1, g: 1, b: 1, a: 1}
m_fontColorGradientPreset: {fileID: 0}
m_spriteAsset: {fileID: 0}
m_tintAllSprites: 0
m_StyleSheet: {fileID: 0}
m_TextStyleHashCode: -1183493901
m_overrideHtmlColors: 0
m_faceColor:
serializedVersion: 2
rgba: 4294967295
m_fontSize: 28.61
m_fontSizeBase: 28.61
m_fontWeight: 400
m_enableAutoSizing: 0
m_fontSizeMin: 18
m_fontSizeMax: 72
m_fontStyle: 0
m_HorizontalAlignment: 2
m_VerticalAlignment: 256
m_textAlignment: 65535
m_characterSpacing: 0
m_wordSpacing: 0
m_lineSpacing: 0
m_lineSpacingMax: 0
m_paragraphSpacing: 0
m_charWidthMaxAdj: 0
m_enableWordWrapping: 1
m_wordWrappingRatios: 0.4
m_overflowMode: 0
m_linkedTextComponent: {fileID: 0}
parentLinkedComponent: {fileID: 0}
m_enableKerning: 1
m_enableExtraPadding: 0
checkPaddingRequired: 0
m_isRichText: 1
m_parseCtrlCharacters: 1
m_isOrthographic: 1
m_isCullingEnabled: 0
m_horizontalMapping: 0
m_verticalMapping: 0
m_uvLineOffset: 0
m_geometrySortingOrder: 0
m_IsTextObjectScaleStatic: 0
m_VertexBufferAutoSizeReduction: 0
m_useMaxVisibleDescender: 1
m_pageToDisplay: 1
m_margin: {x: 678.2656, y: 383.02994, z: 683.16376, w: 383.20734}
m_isUsingLegacyAnimationComponent: 0
m_isVolumetricText: 0
m_hasFontAssetChanged: 0
m_baseMaterial: {fileID: 0}
m_maskOffset: {x: 0, y: 0, z: 0, w: 0}
--- !u!1 &5467881121085099625
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 5467881121085099620}
- component: {fileID: 5467881121085099623}
- component: {fileID: 5467881121085099622}
m_Layer: 0
m_Name: EventSystem
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &5467881121085099620
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5467881121085099625}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 5467881121666507904}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &5467881121085099623
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5467881121085099625}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 76c392e42b5098c458856cdf6ecaaaa1, type: 3}
m_Name:
m_EditorClassIdentifier:
m_FirstSelected: {fileID: 0}
m_sendNavigationEvents: 1
m_DragThreshold: 10
--- !u!114 &5467881121085099622
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5467881121085099625}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 01614664b831546d2ae94a42149d80ac, type: 3}
m_Name:
m_EditorClassIdentifier:
m_MoveRepeatDelay: 0.5
m_MoveRepeatRate: 0.1
m_ActionsAsset: {fileID: -944628639613478452, guid: ca9f5fa95ffab41fb9a615ab714db018, type: 3}
m_PointAction: {fileID: 1054132383583890850, guid: ca9f5fa95ffab41fb9a615ab714db018, type: 3}
m_MoveAction: {fileID: 3710738434707379630, guid: ca9f5fa95ffab41fb9a615ab714db018, type: 3}
m_SubmitAction: {fileID: 2064916234097673511, guid: ca9f5fa95ffab41fb9a615ab714db018, type: 3}
m_CancelAction: {fileID: -1967631576421560919, guid: ca9f5fa95ffab41fb9a615ab714db018, type: 3}
m_LeftClickAction: {fileID: 8056856818456041789, guid: ca9f5fa95ffab41fb9a615ab714db018, type: 3}
m_MiddleClickAction: {fileID: 3279352641294131588, guid: ca9f5fa95ffab41fb9a615ab714db018, type: 3}
m_RightClickAction: {fileID: 3837173908680883260, guid: ca9f5fa95ffab41fb9a615ab714db018, type: 3}
m_ScrollWheelAction: {fileID: 4502412055082496612, guid: ca9f5fa95ffab41fb9a615ab714db018, type: 3}
m_TrackedDevicePositionAction: {fileID: 4754684134866288074, guid: ca9f5fa95ffab41fb9a615ab714db018, type: 3}
m_TrackedDeviceOrientationAction: {fileID: 1025543830046995696, guid: ca9f5fa95ffab41fb9a615ab714db018, type: 3}
m_DeselectOnBackgroundClick: 1
m_PointerBehavior: 0
--- !u!1 &5467881121094036217
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 5467881121094036214}
- component: {fileID: 5467881121094036212}
- component: {fileID: 5467881121094036215}
- component: {fileID: 5467881121094036213}
m_Layer: 5
m_Name: Timer
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &5467881121094036214
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5467881121094036217}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 3.4629, y: 3.4629, z: 3.4629}
m_Children: []
m_Father: {fileID: 5467881120228357852}
m_RootOrder: 3
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &5467881121094036212
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5467881121094036217}
m_CullTransparentMesh: 1
--- !u!114 &5467881121094036215
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5467881121094036217}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_text: '10
'
m_isRightToLeft: 0
m_fontAsset: {fileID: 11400000, guid: 20211ba66ef101c4aa909411d3b1889c, type: 2}
m_sharedMaterial: {fileID: -3032783949912112466, guid: 20211ba66ef101c4aa909411d3b1889c, type: 2}
m_fontSharedMaterials: []
m_fontMaterial: {fileID: 0}
m_fontMaterials: []
m_fontColor32:
serializedVersion: 2
rgba: 4291615970
m_fontColor: {r: 0.8862746, g: 0.86274517, b: 0.8000001, a: 1}
m_enableVertexGradient: 0
m_colorMode: 3
m_fontColorGradient:
topLeft: {r: 1, g: 1, b: 1, a: 1}
topRight: {r: 1, g: 1, b: 1, a: 1}
bottomLeft: {r: 1, g: 1, b: 1, a: 1}
bottomRight: {r: 1, g: 1, b: 1, a: 1}
m_fontColorGradientPreset: {fileID: 0}
m_spriteAsset: {fileID: 0}
m_tintAllSprites: 0
m_StyleSheet: {fileID: 0}
m_TextStyleHashCode: -1183493901
m_overrideHtmlColors: 0
m_faceColor:
serializedVersion: 2
rgba: 4294967295
m_fontSize: 28.61
m_fontSizeBase: 28.61
m_fontWeight: 400
m_enableAutoSizing: 0
m_fontSizeMin: 18
m_fontSizeMax: 72
m_fontStyle: 0
m_HorizontalAlignment: 2
m_VerticalAlignment: 256
m_textAlignment: 65535
m_characterSpacing: 0
m_wordSpacing: 0
m_lineSpacing: 0
m_lineSpacingMax: 0
m_paragraphSpacing: 0
m_charWidthMaxAdj: 0
m_enableWordWrapping: 1
m_wordWrappingRatios: 0.4
m_overflowMode: 0
m_linkedTextComponent: {fileID: 0}
parentLinkedComponent: {fileID: 0}
m_enableKerning: 1
m_enableExtraPadding: 0
checkPaddingRequired: 0
m_isRichText: 1
m_parseCtrlCharacters: 1
m_isOrthographic: 1
m_isCullingEnabled: 0
m_horizontalMapping: 0
m_verticalMapping: 0
m_uvLineOffset: 0
m_geometrySortingOrder: 0
m_IsTextObjectScaleStatic: 0
m_VertexBufferAutoSizeReduction: 0
m_useMaxVisibleDescender: 1
m_pageToDisplay: 1
m_margin: {x: 678.2656, y: 383.02994, z: 683.16376, w: 383.20734}
m_isUsingLegacyAnimationComponent: 0
m_isVolumetricText: 0
m_hasFontAssetChanged: 0
m_baseMaterial: {fileID: 0}
m_maskOffset: {x: 0, y: 0, z: 0, w: 0}
--- !u!114 &5467881121094036213
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5467881121094036217}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 5e65af424b40dd845ae91bb2d24af0c9, type: 3}
m_Name:
m_EditorClassIdentifier:
m_time:
Variable: {fileID: 11400000, guid: a36c9e2ffbc2b20429e4486eba03312a, type: 2}
m_useLocal: 0
m_localValue: 0
m_text: {fileID: 5467881121094036215}
m_lowTimeColor: {r: 0.7264151, g: 0.11307406, b: 0.11307406, a: 1}
m_defaultColor: {r: 0.8862745, g: 0.8627451, b: 0.8, a: 1}
m_lowTimeAmount: 3
--- !u!1 &5467881121402791699
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 5467881121402791726}
- component: {fileID: 5467881121402791697}
- component: {fileID: 5467881121402791696}
m_Layer: 5
m_Name: Go
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 0
--- !u!224 &5467881121402791726
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5467881121402791699}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 3.4629, y: 3.4629, z: 3.4629}
m_Children: []
m_Father: {fileID: 5467881120228357852}
m_RootOrder: 4
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &5467881121402791697
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5467881121402791699}
m_CullTransparentMesh: 1
--- !u!114 &5467881121402791696
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5467881121402791699}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_text: 'Go!
'
m_isRightToLeft: 0
m_fontAsset: {fileID: 11400000, guid: 20211ba66ef101c4aa909411d3b1889c, type: 2}
m_sharedMaterial: {fileID: -3032783949912112466, guid: 20211ba66ef101c4aa909411d3b1889c, type: 2}
m_fontSharedMaterials: []
m_fontMaterial: {fileID: 0}
m_fontMaterials: []
m_fontColor32:
serializedVersion: 2
rgba: 4294967295
m_fontColor: {r: 0.8862746, g: 0.86274517, b: 0.8000001, a: 1}
m_enableVertexGradient: 0
m_colorMode: 3
m_fontColorGradient:
topLeft: {r: 1, g: 1, b: 1, a: 1}
topRight: {r: 1, g: 1, b: 1, a: 1}
bottomLeft: {r: 1, g: 1, b: 1, a: 1}
bottomRight: {r: 1, g: 1, b: 1, a: 1}
m_fontColorGradientPreset: {fileID: 0}
m_spriteAsset: {fileID: 0}
m_tintAllSprites: 0
m_StyleSheet: {fileID: 0}
m_TextStyleHashCode: -1183493901
m_overrideHtmlColors: 0
m_faceColor:
serializedVersion: 2
rgba: 4294967295
m_fontSize: 28.61
m_fontSizeBase: 28.61
m_fontWeight: 400
m_enableAutoSizing: 0
m_fontSizeMin: 18
m_fontSizeMax: 72
m_fontStyle: 0
m_HorizontalAlignment: 2
m_VerticalAlignment: 512
m_textAlignment: 65535
m_characterSpacing: 0
m_wordSpacing: 0
m_lineSpacing: 0
m_lineSpacingMax: 0
m_paragraphSpacing: 0
m_charWidthMaxAdj: 0
m_enableWordWrapping: 1
m_wordWrappingRatios: 0.4
m_overflowMode: 0
m_linkedTextComponent: {fileID: 0}
parentLinkedComponent: {fileID: 0}
m_enableKerning: 1
m_enableExtraPadding: 0
checkPaddingRequired: 0
m_isRichText: 1
m_parseCtrlCharacters: 1
m_isOrthographic: 1
m_isCullingEnabled: 0
m_horizontalMapping: 0
m_verticalMapping: 0
m_uvLineOffset: 0
m_geometrySortingOrder: 0
m_IsTextObjectScaleStatic: 0
m_VertexBufferAutoSizeReduction: 0
m_useMaxVisibleDescender: 1
m_pageToDisplay: 1
m_margin: {x: 678.2656, y: 383.02994, z: 683.16376, w: 383.20734}
m_isUsingLegacyAnimationComponent: 0
m_isVolumetricText: 0
m_hasFontAssetChanged: 0
m_baseMaterial: {fileID: 0}
m_maskOffset: {x: 0, y: 0, z: 0, w: 0}
--- !u!1 &5467881121666507906
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 5467881121666507904}
- component: {fileID: 5467881121666507907}
- component: {fileID: 5467881121666507905}
m_Layer: 0
m_Name: Level Manager
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &5467881121666507904
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5467881121666507906}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:
- {fileID: 5467881120228357852}
- {fileID: 5467881121085099620}
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &5467881121666507907
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5467881121666507906}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 2022aae2eff786945bf401469695230a, type: 3}
m_Name:
m_EditorClassIdentifier:
m_isPlayerDead:
Variable: {fileID: 11400000, guid: a1586014535831a4e80b30178ff5ced4, type: 2}
m_useLocal: 0
m_localValue: 0
m_freezePlayer:
Variable: {fileID: 11400000, guid: 4644ea58ce4d81544b22caddc5e66c86, type: 2}
m_useLocal: 0
m_localValue: 0
m_isVictory:
Variable: {fileID: 11400000, guid: f1d9845714eccd24bafc361e7f23c030, type: 2}
m_useLocal: 0
m_localValue: 0
m_timer:
Variable: {fileID: 11400000, guid: a36c9e2ffbc2b20429e4486eba03312a, type: 2}
m_useLocal: 0
m_localValue: 0
m_light:
Variable: {fileID: 11400000, guid: ca17925be533f0e488952f6fe4d4563b, type: 2}
m_useLocal: 0
m_localValue: 0
m_manualDarkness:
Variable: {fileID: 11400000, guid: cfc8ff2567609574f8482f3eaabd3bee, type: 2}
m_useLocal: 0
m_localValue: 0
m_backGround: {fileID: 5467881119753774637}
levelName: Template Level
m_timeInLevel: 25
levelPrompt: This needs to be changed
m_resetTime: 1
m_nextSceneWaitTime: 3
m_nextSceneToLoad: Level 1
--- !u!114 &5467881121666507905
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5467881121666507906}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: defe810759a00a0468a3ce45d95df966, type: 3}
m_Name:
m_EditorClassIdentifier:
m_darknessMat: {fileID: 2100000, guid: 65c1434865079454a94a84f692299fcb, type: 2}
m_lightLevel:
Variable: {fileID: 11400000, guid: ca17925be533f0e488952f6fe4d4563b, type: 2}
m_useLocal: 0
m_localValue: 0
m_isInputDown:
Variable: {fileID: 11400000, guid: ae129d59580dbe94fa385299e3dfb47d, type: 2}
m_useLocal: 0
m_localValue: 0
m_manuelDarknesscontrol:
Variable: {fileID: 11400000, guid: cfc8ff2567609574f8482f3eaabd3bee, type: 2}
m_useLocal: 0
m_localValue: 0
m_darknessSpeed: 0.25
m_lightSpeed: 1
m_lightCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 0
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
- serializedVersion: 3
time: 0.74284196
value: 0.33285347
inSlope: 1.5213661
outSlope: 1.5213661
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.22074772
- serializedVersion: 3
time: 1
value: 1
inSlope: 2
outSlope: 2
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4

+ 7
- 0
Assets/Prefabs/Level Manager.prefab.meta View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 2d74fb1ef6531e143887739ff47c365c
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

+ 1
- 1
Assets/Prefabs/Player.prefab View File

@ -240,7 +240,7 @@ MonoBehaviour:
m_useLocal: 0 m_useLocal: 0
m_localValue: 0 m_localValue: 0
m_noInputAllowed: m_noInputAllowed:
Variable: {fileID: 11400000, guid: ea1cffffa7e1ed34ca1fe3d3af13777c, type: 2}
Variable: {fileID: 11400000, guid: 4644ea58ce4d81544b22caddc5e66c86, type: 2}
m_useLocal: 0 m_useLocal: 0
m_localValue: 0 m_localValue: 0
m_speed: 2 m_speed: 2

BIN
Assets/Scenes/Level 1.unity (Stored with Git LFS) View File

size 213726

+ 8
- 0
Assets/Scenes/Official Levels.meta View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 87ccb141b54914c41a51e5257c427fd7
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

+ 1
- 0
Assets/Scenes/Official Levels/.gitkeep View File

@ -0,0 +1 @@
#Allows git to track this folder even if it is empty.

BIN
Assets/Scenes/Template Level.unity (Stored with Git LFS) View File

size 47739

+ 7
- 0
Assets/Scenes/Template Level.unity.meta View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 039afd8647b47704e8ec219fce64b526
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

+ 137
- 137
Assets/Scripts/Character/CharacterController2D.cs View File

@ -1,57 +1,57 @@
using UnityEngine;
using UnityEngine.Events;
public class CharacterController2D : MonoBehaviour
{
[SerializeField] private float m_JumpForce = 400f; // Amount of force added when the player jumps.
[SerializeField] private float m_WallJumpMultiplier = 3f; // Amount of force added when the player jumps off a wall.
[Range(0, 1)] [SerializeField] private float m_CrouchSpeed = .36f; // Amount of maxSpeed applied to crouching movement. 1 = 100%
[Range(0, .3f)] [SerializeField] private float m_MovementSmoothing = .05f; // How much to smooth out the movement
[SerializeField] private bool m_AirControl = false; // Whether or not a player can steer while jumping;
[SerializeField] private LayerMask m_WhatIsGround; // A mask determining what is ground to the character
[SerializeField] private Transform m_GroundCheck; // A position marking where to check if the player is grounded.
[SerializeField] private Transform m_CeilingCheck; // A position marking where to check for ceilings
[SerializeField] private Transform m_WallCheck;
[SerializeField] private Collider2D m_CrouchDisableCollider; // A collider that will be disabled when crouching
const float k_GroundedRadius = .2f; // Radius of the overlap circle to determine if grounded
private bool m_Grounded; // Whether or not the player is grounded.
private bool m_TouchingWall;
const float k_CeilingRadius = .2f; // Radius of the overlap circle to determine if the player can stand up
private Rigidbody2D m_Rigidbody2D;
private bool m_FacingRight = true; // For determining which way the player is currently facing.
private Vector3 m_Velocity = Vector3.zero;
private enum Direction { NA=0, L, R };
private Direction m_LastWallJumpDirection = Direction.NA;
[Header("Events")]
[Space]
public UnityEvent OnLandEvent;
[System.Serializable]
public class BoolEvent : UnityEvent<bool> { }
public BoolEvent OnCrouchEvent;
private bool m_wasCrouching = false;
private void Awake()
{
m_Rigidbody2D = GetComponent<Rigidbody2D>();
if (OnLandEvent == null)
OnLandEvent = new UnityEvent();
if (OnCrouchEvent == null)
OnCrouchEvent = new BoolEvent();
}
private void FixedUpdate()
{
CheckGrounded();
CheckTouchingWall();
}
using UnityEngine;
using UnityEngine.Events;
public class CharacterController2D : MonoBehaviour
{
[SerializeField] private float m_JumpForce = 400f; // Amount of force added when the player jumps.
[SerializeField] private float m_WallJumpMultiplier = 3f; // Amount of force added when the player jumps off a wall.
[Range(0, 1)] [SerializeField] private float m_CrouchSpeed = .36f; // Amount of maxSpeed applied to crouching movement. 1 = 100%
[Range(0, .3f)] [SerializeField] private float m_MovementSmoothing = .05f; // How much to smooth out the movement
[SerializeField] private bool m_AirControl = false; // Whether or not a player can steer while jumping;
[SerializeField] private LayerMask m_WhatIsGround; // A mask determining what is ground to the character
[SerializeField] private Transform m_GroundCheck; // A position marking where to check if the player is grounded.
[SerializeField] private Transform m_CeilingCheck; // A position marking where to check for ceilings
[SerializeField] private Transform m_WallCheck;
[SerializeField] private Collider2D m_CrouchDisableCollider; // A collider that will be disabled when crouching
const float k_GroundedRadius = .2f; // Radius of the overlap circle to determine if grounded
private bool m_Grounded; // Whether or not the player is grounded.
private bool m_TouchingWall;
const float k_CeilingRadius = .2f; // Radius of the overlap circle to determine if the player can stand up
private Rigidbody2D m_Rigidbody2D;
private bool m_FacingRight = true; // For determining which way the player is currently facing.
private Vector3 m_Velocity = Vector3.zero;
private enum Direction { NA=0, L, R };
private Direction m_LastWallJumpDirection = Direction.NA;
[Header("Events")]
[Space]
public UnityEvent OnLandEvent;
[System.Serializable]
public class BoolEvent : UnityEvent<bool> { }
public BoolEvent OnCrouchEvent;
private bool m_wasCrouching = false;
private void Awake()
{
m_Rigidbody2D = GetComponent<Rigidbody2D>();
if (OnLandEvent == null)
OnLandEvent = new UnityEvent();
if (OnCrouchEvent == null)
OnCrouchEvent = new BoolEvent();
}
private void FixedUpdate()
{
CheckGrounded();
CheckTouchingWall();
}
private void CheckGrounded() private void CheckGrounded()
{ {
bool wasGrounded = m_Grounded; bool wasGrounded = m_Grounded;
@ -67,8 +67,8 @@ public class CharacterController2D : MonoBehaviour
OnLandEvent.Invoke(); OnLandEvent.Invoke();
} }
} }
}
}
private void CheckTouchingWall() private void CheckTouchingWall()
{ {
m_TouchingWall = false; m_TouchingWall = false;
@ -80,80 +80,80 @@ public class CharacterController2D : MonoBehaviour
m_TouchingWall = true; m_TouchingWall = true;
} }
} }
}
public void Move(float move, bool crouch, bool jump)
{
// If crouching, check to see if the character can stand up
if (!crouch)
{
// If the character has a ceiling preventing them from standing up, keep them crouching
{
crouch = true;
}
}
//only control the player if grounded or airControl is turned on
if (m_Grounded || m_AirControl)
{
// If crouching
if (crouch)
{
if (!m_wasCrouching)
{
m_wasCrouching = true;
OnCrouchEvent.Invoke(true);
}
// Reduce the speed by the crouchSpeed multiplier
move *= m_CrouchSpeed;
// Disable one of the colliders when crouching
if (m_CrouchDisableCollider != null)
m_CrouchDisableCollider.enabled = false;
}
else
{
// Enable the collider when not crouching
if (m_CrouchDisableCollider != null)
m_CrouchDisableCollider.enabled = true;
if (m_wasCrouching)
{
m_wasCrouching = false;
OnCrouchEvent.Invoke(false);
}
}
// Move the character by finding the target velocity
Vector3 targetVelocity = new Vector2(move * 10f, m_Rigidbody2D.velocity.y);
// And then smoothing it out and applying it to the character
m_Rigidbody2D.velocity = Vector3.SmoothDamp(m_Rigidbody2D.velocity, targetVelocity, ref m_Velocity, m_MovementSmoothing);
// If the input is moving the player right and the player is facing left...
if (move > 0 && !m_FacingRight)
{
// ... flip the player.
Flip();
}
// Otherwise if the input is moving the player left and the player is facing right...
else if (move < 0 && m_FacingRight)
{
// ... flip the player.
Flip();
}
}
// If the player should jump...
if (m_Grounded && jump)
{
// Add a vertical force to the player.
m_Grounded = false;
}
public void Move(float move, bool crouch, bool jump)
{
// If crouching, check to see if the character can stand up
if (!crouch)
{
// If the character has a ceiling preventing them from standing up, keep them crouching
{
crouch = true;
}
}
//only control the player if grounded or airControl is turned on
if (m_Grounded || m_AirControl)
{
// If crouching
if (crouch)
{
if (!m_wasCrouching)
{
m_wasCrouching = true;
OnCrouchEvent.Invoke(true);
}
// Reduce the speed by the crouchSpeed multiplier
move *= m_CrouchSpeed;
// Disable one of the colliders when crouching
if (m_CrouchDisableCollider != null)
m_CrouchDisableCollider.enabled = false;
}
else
{
// Enable the collider when not crouching
if (m_CrouchDisableCollider != null)
m_CrouchDisableCollider.enabled = true;
if (m_wasCrouching)
{
m_wasCrouching = false;
OnCrouchEvent.Invoke(false);
}
}
// Move the character by finding the target velocity
Vector3 targetVelocity = new Vector2(move * 10f, m_Rigidbody2D.velocity.y);
// And then smoothing it out and applying it to the character
m_Rigidbody2D.velocity = Vector3.SmoothDamp(m_Rigidbody2D.velocity, targetVelocity, ref m_Velocity, m_MovementSmoothing);
// If the input is moving the player right and the player is facing left...
if (move > 0 && !m_FacingRight)
{
// ... flip the player.
Flip();
}
// Otherwise if the input is moving the player left and the player is facing right...
else if (move < 0 && m_FacingRight)
{
// ... flip the player.
Flip();
}
}
// If the player should jump...
if (m_Grounded && jump)
{
// Add a vertical force to the player.
m_Grounded = false;
m_Rigidbody2D.AddForce(new Vector2(0f, m_JumpForce)); m_Rigidbody2D.AddForce(new Vector2(0f, m_JumpForce));
// Reset wall jump switch // Reset wall jump switch
m_LastWallJumpDirection = move > 0 ? Direction.R : Direction.L;
}
m_LastWallJumpDirection = move > 0 ? Direction.R : Direction.L;
}
else if (m_TouchingWall && jump) else if (m_TouchingWall && jump)
{ {
if (m_FacingRight && m_LastWallJumpDirection == Direction.L) if (m_FacingRight && m_LastWallJumpDirection == Direction.L)
@ -173,14 +173,14 @@ public class CharacterController2D : MonoBehaviour
} }
private void Flip()
{
// Switch the way the player is labelled as facing.
m_FacingRight = !m_FacingRight;
// Multiply the player's x local scale by -1.
Vector3 theScale = transform.localScale;
theScale.x *= -1;
transform.localScale = theScale;
}
private void Flip()
{
// Switch the way the player is labelled as facing.
m_FacingRight = !m_FacingRight;
// Multiply the player's x local scale by -1.
Vector3 theScale = transform.localScale;
theScale.x *= -1;
transform.localScale = theScale;
}
} }

+ 4
- 0
Assets/Scripts/ChestController.cs View File

@ -16,6 +16,9 @@ public class ChestController : MonoBehaviour
[SerializeField] [SerializeField]
private Reference<bool> m_freezePlayer; private Reference<bool> m_freezePlayer;
[SerializeField]
private Reference<bool> m_isVictory;
private void OnTriggerEnter2D(Collider2D collision) private void OnTriggerEnter2D(Collider2D collision)
{ {
Animator[] animators = collision.GetComponentsInChildren<Animator>().Concat(collision.GetComponentsInParent<Animator>()).ToArray(); Animator[] animators = collision.GetComponentsInChildren<Animator>().Concat(collision.GetComponentsInParent<Animator>()).ToArray();
@ -25,6 +28,7 @@ public class ChestController : MonoBehaviour
m_chestAnimator.SetBool("Open", true); m_chestAnimator.SetBool("Open", true);
m_playerAnimator.SetTrigger("Victory"); m_playerAnimator.SetTrigger("Victory");
m_freezePlayer.Value = true; m_freezePlayer.Value = true;
m_isVictory.Value = true;
} }

+ 12
- 3
Assets/Scripts/DarknessController.cs View File

@ -16,6 +16,9 @@ public class DarknessController : MonoBehaviour
[SerializeField] [SerializeField]
private Reference<bool> m_isInputDown; private Reference<bool> m_isInputDown;
[SerializeField]
private Reference<bool> m_manuelDarknesscontrol;
[SerializeField, BoxGroup("Settings")] [SerializeField, BoxGroup("Settings")]
private float m_darknessSpeed = 0.25f; private float m_darknessSpeed = 0.25f;
@ -46,10 +49,18 @@ public class DarknessController : MonoBehaviour
} }
private void Update()
{
m_darknessMat.SetFloat("_Apply", m_lightLevel);
}
private void OnInputChange(bool value) private void OnInputChange(bool value)
{ {
if (m_manuelDarknesscontrol)
return;
StopAllCoroutines(); StopAllCoroutines();
Debug.Log($"Here {m_isDarknessChanging}");
if (value) if (value)
{ if (!m_isDarknessChanging) { if (!m_isDarknessChanging)
{ {
@ -83,14 +94,12 @@ public class DarknessController : MonoBehaviour
while(elapsedTime < time) while(elapsedTime < time)
{ {
m_lightLevel.Value = Mathf.Lerp(start, end, curve.Evaluate(elapsedTime / time)); m_lightLevel.Value = Mathf.Lerp(start, end, curve.Evaluate(elapsedTime / time));
m_darknessMat.SetFloat("_Apply", m_lightLevel);
yield return new WaitForEndOfFrame(); yield return new WaitForEndOfFrame();
elapsedTime += Time.deltaTime; elapsedTime += Time.deltaTime;
} }
m_isDarknessChanging = false; m_isDarknessChanging = false;
m_lightLevel.Value = end; m_lightLevel.Value = end;
m_darknessMat.SetFloat("_Apply", m_lightLevel);
} }

Assets/Scripts/TextController.cs → Assets/Scripts/IntroController.cs View File

@ -5,7 +5,7 @@ using UnityEngine.UI;
using TMPro; using TMPro;
using NaughtyAttributes; using NaughtyAttributes;
public class TextController : MonoBehaviour, IResettable
public class IntroController : MonoBehaviour, IResettable
{ {
[SerializeField] [SerializeField]
@ -13,6 +13,7 @@ public class TextController : MonoBehaviour, IResettable
[SerializeField] [SerializeField]
private TextMeshProUGUI m_detailsText; private TextMeshProUGUI m_detailsText;
[SerializeField] [SerializeField]
private TextMeshProUGUI m_timerText; private TextMeshProUGUI m_timerText;
@ -22,6 +23,9 @@ public class TextController : MonoBehaviour, IResettable
[SerializeField] [SerializeField]
private Variables.Reference<bool> m_freezePlayer; private Variables.Reference<bool> m_freezePlayer;
[SerializeField]
private LevelManager m_manager;
[SerializeField] [SerializeField]
private Image m_backGround; private Image m_backGround;
@ -42,6 +46,9 @@ public class TextController : MonoBehaviour, IResettable
private IEnumerator Start() private IEnumerator Start()
{ {
m_backGround.gameObject.SetActive(true); m_backGround.gameObject.SetActive(true);
m_timerText.gameObject.SetActive(false);
m_levelText.text = m_manager.levelName;
m_freezePlayer.Value = true; m_freezePlayer.Value = true;
@ -81,14 +88,15 @@ public class TextController : MonoBehaviour, IResettable
private IEnumerator DetailText(float time,float time2, float time3) private IEnumerator DetailText(float time,float time2, float time3)
{ {
m_detailsText.gameObject.SetActive(true);
m_detailsText.text = "10\n";
m_timerText.gameObject.SetActive(true);
yield return new WaitForSeconds(time); yield return new WaitForSeconds(time);
m_detailsText.text += "Seconds\n\n";
m_detailsText.gameObject.SetActive(true);
m_detailsText.text = "\nSeconds\n\n";
yield return new WaitForSeconds(time); yield return new WaitForSeconds(time);
foreach(char c in "Get to the Chest")
foreach(char c in m_manager.levelPrompt)
{ {
m_detailsText.text += c; m_detailsText.text += c;
yield return new WaitForSeconds(time2); yield return new WaitForSeconds(time2);
@ -104,7 +112,7 @@ public class TextController : MonoBehaviour, IResettable
Color textColor = m_detailsText.color; Color textColor = m_detailsText.color;
Color backgroundColor = m_backGround.color; Color backgroundColor = m_backGround.color;
m_timerText.gameObject.SetActive(true);
while (elaspedTime < time) while (elaspedTime < time)
{ {

Assets/Scripts/TextController.cs.meta → Assets/Scripts/IntroController.cs.meta View File


+ 76
- 4
Assets/Scripts/LevelManager.cs View File

@ -2,6 +2,8 @@ using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using UnityEngine; using UnityEngine;
using UnityEngine.UI;
using UnityEngine.SceneManagement;
using NaughtyAttributes; using NaughtyAttributes;
using Variables; using Variables;
@ -19,17 +21,32 @@ public class LevelManager : MonoBehaviour
[SerializeField] [SerializeField]
Reference<float> m_timer; Reference<float> m_timer;
[SerializeField]
Reference<float> m_light;
[SerializeField]
Reference<bool> m_manualDarkness;
[SerializeField]
private Image m_backGround;
[SerializeField, BoxGroup("Level Settings")] [SerializeField, BoxGroup("Level Settings")]
private string m_levelName = "Level 1";
public string levelName = "Level 1";
[SerializeField, BoxGroup("Level Settings")] [SerializeField, BoxGroup("Level Settings")]
private float m_timeInLevel = 10; private float m_timeInLevel = 10;
[SerializeField]
[SerializeField, BoxGroup("Level Settings")]
public string levelPrompt = "Get to the Chest";
[SerializeField,BoxGroup("Default Settings")]
private float m_resetTime = 1; private float m_resetTime = 1;
[SerializeField]
[SerializeField, BoxGroup("Default Settings")]
private float m_nextSceneWaitTime = 3;
[SerializeField, BoxGroup("Level Settings")]
private string m_nextSceneToLoad = "Level 2"; private string m_nextSceneToLoad = "Level 2";
@ -40,6 +57,8 @@ public class LevelManager : MonoBehaviour
m_allResetable = FindObjectsOfType<MonoBehaviour>().OfType<IResettable>().ToArray(); m_allResetable = FindObjectsOfType<MonoBehaviour>().OfType<IResettable>().ToArray();
m_timer.Value = m_timeInLevel; m_timer.Value = m_timeInLevel;
m_isVictory.Value = false;
foreach (IResettable resettable in m_allResetable) foreach (IResettable resettable in m_allResetable)
{ {
resettable.OnLevelLoad(); resettable.OnLevelLoad();
@ -50,6 +69,12 @@ public class LevelManager : MonoBehaviour
{ {
if (!m_freezePlayer) if (!m_freezePlayer)
m_timer.Value -= Time.deltaTime; m_timer.Value -= Time.deltaTime;
if (m_timer <= 0 && !m_isPlayerDead)
{
m_isPlayerDead.Value = true;
}
} }
@ -87,6 +112,48 @@ public class LevelManager : MonoBehaviour
} }
private IEnumerator VictoryRoutine()
{
yield return new WaitForSeconds(m_nextSceneWaitTime);
m_manualDarkness.Value = true;
float elapsedTime = 0;
float fadeTime = 1;
while (elapsedTime < fadeTime)
{
m_light.Value = 1 - elapsedTime / fadeTime;
yield return new WaitForEndOfFrame();
elapsedTime += Time.deltaTime;
}
m_light.Value = 0;
yield return new WaitForSeconds(1);
elapsedTime = 0;
fadeTime = 2;
Color color = m_backGround.color;
m_backGround.gameObject.SetActive(true);
while (elapsedTime < fadeTime)
{
color.a = elapsedTime / fadeTime;
m_backGround.color = color;
Debug.Log(color.a);
yield return new WaitForEndOfFrame();
elapsedTime += Time.deltaTime;
}
yield return new WaitForSeconds(1);
m_manualDarkness.Value = false;
SceneManager.LoadScene(m_nextSceneToLoad);
}
@ -102,7 +169,10 @@ public class LevelManager : MonoBehaviour
private void OnPlayerVictoryChange(bool value) private void OnPlayerVictoryChange(bool value)
{ {
if (value)
{
StartCoroutine(VictoryRoutine());
}
} }
@ -110,4 +180,6 @@ public class LevelManager : MonoBehaviour
} }

+ 1
- 1
Assets/Scripts/LevelManager.cs.meta View File

@ -4,7 +4,7 @@ MonoImporter:
externalObjects: {} externalObjects: {}
serializedVersion: 2 serializedVersion: 2
defaultReferences: [] defaultReferences: []
executionOrder: 0
executionOrder: -1
icon: {instanceID: 0} icon: {instanceID: 0}
userData: userData:
assetBundleName: assetBundleName:

+ 1
- 1
Assets/Scripts/Shaders/Image.mat View File

@ -79,7 +79,7 @@ Material:
- _UVSec: 0 - _UVSec: 0
- _ZWrite: 1 - _ZWrite: 1
m_Colors: m_Colors:
- _BackgroundColor: {r: 0.043137256, g: 0.043137256, b: 0.10980393, a: 1}
- _BackgroundColor: {r: 0.054901965, g: 0.039215688, b: 0.10196079, a: 1}
- _Color: {r: 1, g: 1, b: 1, a: 1} - _Color: {r: 1, g: 1, b: 1, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1} - _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
- _MaskColor: {r: 0.043137256, g: 0.043137256, b: 0.10980393, a: 1} - _MaskColor: {r: 0.043137256, g: 0.043137256, b: 0.10980393, a: 1}

+ 86
- 6
Assets/Scripts/SneakyTextController.cs View File

@ -11,9 +11,16 @@ public class SneakyTextController : MonoBehaviour
[SerializeField] [SerializeField]
private Reference<bool> m_freezePlayer; private Reference<bool> m_freezePlayer;
[SerializeField]
private Reference<bool> m_manuelDarknesscontrol;
[SerializeField] [SerializeField]
private float m_time = 10; private float m_time = 10;
[SerializeField]
private GameObject m_timerObject;
[SerializeField] [SerializeField]
private TMPro.TextMeshProUGUI m_text; private TMPro.TextMeshProUGUI m_text;
@ -38,10 +45,8 @@ public class SneakyTextController : MonoBehaviour
private void OnLightChange(float value) private void OnLightChange(float value)
{ {
Color color = m_text.color;
color.a = 1 - m_lightLevel;
m_text.color = color;
Debug.Log("Here");
if (!m_hasTriggered && !m_freezePlayer) if (!m_hasTriggered && !m_freezePlayer)
{ {
@ -53,10 +58,85 @@ public class SneakyTextController : MonoBehaviour
private IEnumerator Timer(float time) private IEnumerator Timer(float time)
{ {
Debug.Log("here");
Debug.Log("Showing sneaky text");
m_manuelDarknesscontrol.Value = true;
float elapsedTime = 0;
float fadeTime = 0.33f;
m_text.gameObject.SetActive(true); m_text.gameObject.SetActive(true);
yield return new WaitForSeconds(time);
Color color = m_text.color;
while (elapsedTime< fadeTime)
{
m_lightLevel.Value = 1 - (elapsedTime / fadeTime);
color.a = 1 - m_lightLevel;
m_text.color = color;
yield return new WaitForEndOfFrame();
elapsedTime += Time.deltaTime;
}
m_lightLevel.Value = 0;
color.a = 1 - m_lightLevel;
m_text.color = color;
m_timerObject.SetActive(false);
Time.timeScale = 0.1f;
elapsedTime = 0;
fadeTime = 1.0f;
while (elapsedTime < fadeTime)
{
Time.timeScale = 1 - (elapsedTime / fadeTime);
yield return new WaitForEndOfFrame();
elapsedTime += Time.unscaledDeltaTime;
}
yield return new WaitForSecondsRealtime(time);
Time.timeScale = 1;
m_timerObject.SetActive(true);
elapsedTime = 0;
fadeTime = 0.25f;
while (elapsedTime < fadeTime)
{
m_lightLevel.Value = (elapsedTime / fadeTime);
color.a = 1 - (elapsedTime / fadeTime);
m_text.color = color;
yield return new WaitForEndOfFrame();
elapsedTime += Time.deltaTime;
}
m_text.gameObject.SetActive(false); m_text.gameObject.SetActive(false);
m_manuelDarknesscontrol.Value = false;
} }
} }

+ 1
- 1
Assets/Scripts/SneakyTextController.cs.meta View File

@ -4,7 +4,7 @@ MonoImporter:
externalObjects: {} externalObjects: {}
serializedVersion: 2 serializedVersion: 2
defaultReferences: [] defaultReferences: []
executionOrder: 0
executionOrder: 300
icon: {instanceID: 0} icon: {instanceID: 0}
userData: userData:
assetBundleName: assetBundleName:

+ 29
- 2
Assets/Scripts/TimerController.cs View File

@ -2,16 +2,35 @@ using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using UnityEngine; using UnityEngine;
using TMPro; using TMPro;
using NaughtyAttributes;
using Variables; using Variables;
public class TimerController : MonoBehaviour public class TimerController : MonoBehaviour
{ {
[SerializeField]
[SerializeField,Header("References")]
private Reference<float> m_time; private Reference<float> m_time;
[SerializeField]
private TextMeshProUGUI m_text;
[SerializeField, BoxGroup("Settings")]
private Color m_lowTimeColor = Color.red;
[SerializeField, BoxGroup("Settings")]
private Color m_defaultColor; private Color m_defaultColor;
[SerializeField, BoxGroup("Settings")]
private float m_lowTimeAmount = 3;
private void Awake()
{
OnTimeChange(m_time.Value);
}
private void OnEnable() private void OnEnable()
{ {
@ -26,8 +45,16 @@ public class TimerController : MonoBehaviour
private void OnTimeChange(float value) private void OnTimeChange(float value)
{ {
m_text.text = value.ToString("0");
if (value <= m_lowTimeAmount)
{
m_text.color = m_lowTimeColor;
}
else
{
m_text.color = m_defaultColor;
}
} }

BIN
Assets/Variables/Runtime/freezePlayer.asset (Stored with Git LFS) View File

size 466 size 466

+ 1
- 1
Assets/Variables/Runtime/freezePlayer.asset.meta View File

@ -1,5 +1,5 @@
fileFormatVersion: 2 fileFormatVersion: 2
guid: ea1cffffa7e1ed34ca1fe3d3af13777c
guid: 4644ea58ce4d81544b22caddc5e66c86
NativeFormatImporter: NativeFormatImporter:
externalObjects: {} externalObjects: {}
mainObjectFileID: 11400000 mainObjectFileID: 11400000

BIN
Assets/Variables/Runtime/isLightManual.asset (Stored with Git LFS) View File

size 467

+ 8
- 0
Assets/Variables/Runtime/isLightManual.asset.meta View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: cfc8ff2567609574f8482f3eaabd3bee
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:

BIN
Assets/Variables/Runtime/isVictory.asset (Stored with Git LFS) View File

size 463

+ 8
- 0
Assets/Variables/Runtime/isVictory.asset.meta View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: f1d9845714eccd24bafc361e7f23c030
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:

BIN
ProjectSettings/EditorBuildSettings.asset (Stored with Git LFS) View File

size 418

Loading…
Cancel
Save