Browse Source

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

# Conflicts:
#	Assets/Art Assets/Textures/Chars/Moose Angel/Materials/monster_0.mat
#	Assets/Art Assets/Textures/Chars/Moose Angel/Materials/monster_0.mat.meta
main
Tau-er\Bobbster 2 years ago
parent
commit
ab4aa816a7
35 changed files with 1311 additions and 18 deletions
  1. +8
    -0
      Assets/Art Assets/Textures/Chars/Moose Angel/Materials.meta~77db7eb71343ea6a91583afc81271a936526016c
  2. +4
    -0
      Assets/Art Assets/Textures/Chars/Moose Angel/Materials/monster_0.mat
  3. +4
    -0
      Assets/Art Assets/Textures/Chars/Moose Angel/Materials/monster_0.mat.meta
  4. +144
    -0
      Assets/Art Assets/Textures/Chars/Moose Angel/face_mask_0.png.meta
  5. +473
    -0
      Assets/Prefabs/Player.prefab
  6. +7
    -0
      Assets/Prefabs/Player.prefab.meta
  7. +211
    -0
      Assets/Prefabs/spikes_3.prefab
  8. +7
    -0
      Assets/Prefabs/spikes_3.prefab.meta
  9. BIN
      Assets/Scenes/Level 1.unity
  10. BIN
      Assets/Scenes/WalljumpTest.unity
  11. +30
    -0
      Assets/Scripts/CameraFollower.cs
  12. +11
    -0
      Assets/Scripts/CameraFollower.cs.meta
  13. +37
    -0
      Assets/Scripts/Character/CharacterReset.cs
  14. +11
    -0
      Assets/Scripts/Character/CharacterReset.cs.meta
  15. +13
    -9
      Assets/Scripts/DarknessController.cs
  16. +14
    -0
      Assets/Scripts/IResettable.cs
  17. +11
    -0
      Assets/Scripts/IResettable.cs.meta
  18. +19
    -0
      Assets/Scripts/KillPlayer.cs
  19. +11
    -0
      Assets/Scripts/KillPlayer.cs.meta
  20. +113
    -0
      Assets/Scripts/LevelManager.cs
  21. +11
    -0
      Assets/Scripts/LevelManager.cs.meta
  22. +62
    -0
      Assets/Scripts/SneakyTextController.cs
  23. +11
    -0
      Assets/Scripts/SneakyTextController.cs.meta
  24. +14
    -2
      Assets/Scripts/TextController.cs
  25. +34
    -0
      Assets/Scripts/TimerController.cs
  26. +11
    -0
      Assets/Scripts/TimerController.cs.meta
  27. BIN
      Assets/Variables/Runtime/LightAmount.asset
  28. +8
    -0
      Assets/Variables/Runtime/LightAmount.asset.meta
  29. BIN
      Assets/Variables/Runtime/Timer.asset
  30. +8
    -0
      Assets/Variables/Runtime/Timer.asset.meta
  31. BIN
      Assets/Variables/Runtime/freezePlayer.asset
  32. +0
    -0
      Assets/Variables/Runtime/freezePlayer.asset.meta
  33. BIN
      Assets/Variables/Runtime/isNoInput.asset
  34. BIN
      Assets/Variables/Runtime/isPlayerDead.asset
  35. +8
    -0
      Assets/Variables/Runtime/isPlayerDead.asset.meta

+ 8
- 0
Assets/Art Assets/Textures/Chars/Moose Angel/Materials.meta~77db7eb71343ea6a91583afc81271a936526016c View File

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

+ 4
- 0
Assets/Art Assets/Textures/Chars/Moose Angel/Materials/monster_0.mat View File

@ -24,7 +24,11 @@ Material:
m_Scale: {x: 1, y: 1} m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0} m_Offset: {x: 0, y: 0}
- _MainTex: - _MainTex:
<<<<<<< HEAD
m_Texture: {fileID: 2800000, guid: 4f66e39be2d476f46bb700a5268dcfb8, type: 3} m_Texture: {fileID: 2800000, guid: 4f66e39be2d476f46bb700a5268dcfb8, type: 3}
=======
m_Texture: {fileID: 2800000, guid: 6ba5faafd9a8ff44b8f96dbe81c4f0f2, type: 3}
>>>>>>> 77db7eb71343ea6a91583afc81271a936526016c
m_Scale: {x: 1, y: 1} m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0} m_Offset: {x: 0, y: 0}
m_Floats: m_Floats:

+ 4
- 0
Assets/Art Assets/Textures/Chars/Moose Angel/Materials/monster_0.mat.meta View File

@ -1,5 +1,9 @@
fileFormatVersion: 2 fileFormatVersion: 2
<<<<<<< HEAD
guid: 4cfcd558d1d29fe49a8f2d60afff1640 guid: 4cfcd558d1d29fe49a8f2d60afff1640
=======
guid: ca80fac3bd969f84eaf173691c89d17a
>>>>>>> 77db7eb71343ea6a91583afc81271a936526016c
NativeFormatImporter: NativeFormatImporter:
externalObjects: {} externalObjects: {}
mainObjectFileID: 2100000 mainObjectFileID: 2100000

+ 144
- 0
Assets/Art Assets/Textures/Chars/Moose Angel/face_mask_0.png.meta View File

@ -0,0 +1,144 @@
fileFormatVersion: 2
guid: 59dd813e4bd61114da8ecacf6b2f6061
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 11
mipmaps:
mipMapMode: 0
enableMipMap: 1
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
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: 1
aniso: 2
mipBias: 0
wrapU: 0
wrapV: 0
wrapW: 0
nPOTScale: 1
lightmap: 0
compressionQuality: 50
spriteMode: 0
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 0
spriteTessellationDetail: -1
textureType: 0
textureShape: 1
singleChannelComponent: 0
flipbookRows: 1
flipbookColumns: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
ignorePngGamma: 0
applyGammaDecoding: 0
platformSettings:
- serializedVersion: 3
buildTarget: DefaultTexturePlatform
maxTextureSize: 8192
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Standalone
maxTextureSize: 8192
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: iPhone
maxTextureSize: 8192
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Android
maxTextureSize: 8192
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: 8192
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:
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
spritePackingTag:
pSDRemoveMatte: 0
pSDShowRemoveMatteOption: 0
userData:
assetBundleName:
assetBundleVariant:

+ 473
- 0
Assets/Prefabs/Player.prefab View File

@ -0,0 +1,473 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &4668322654876184655
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 4668322654876184626}
- component: {fileID: 4668322654876184653}
- component: {fileID: 4668322654876184652}
- component: {fileID: 4668322654876184627}
- component: {fileID: 4668322654876184630}
- component: {fileID: 4668322654876184625}
- component: {fileID: 4668322654876184624}
- component: {fileID: 4668322654876184631}
- component: {fileID: -4453463038580551382}
m_Layer: 7
m_Name: Player
m_TagString: Player
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &4668322654876184626
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4668322654876184655}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: -13.03, y: -5.21, z: -0.17}
m_LocalScale: {x: 0.6, y: 0.6, z: 0.6}
m_Children:
- {fileID: 4668322656625073464}
- {fileID: 4668322656710469013}
- {fileID: 4668322655870949457}
- {fileID: 4668322655423990997}
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!212 &4668322654876184653
SpriteRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4668322654876184655}
m_Enabled: 0
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: -9095717837082945937, guid: bd3cb4af8406d4436a2ae8c2aafe1f8d, 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, y: 2}
m_AdaptiveModeThreshold: 0.5
m_SpriteTileMode: 0
m_WasSpriteAssigned: 1
m_MaskInteraction: 0
m_SpriteSortPoint: 0
--- !u!50 &4668322654876184652
Rigidbody2D:
serializedVersion: 4
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4668322654876184655}
m_BodyType: 0
m_Simulated: 1
m_UseFullKinematicContacts: 0
m_UseAutoMass: 0
m_Mass: 1
m_LinearDrag: 0
m_AngularDrag: 0.05
m_GravityScale: 1
m_Material: {fileID: 6200000, guid: 6c2f9af082941ef45abc8e6a22e1c9ef, type: 2}
m_Interpolate: 0
m_SleepingMode: 1
m_CollisionDetection: 0
m_Constraints: 4
--- !u!70 &4668322654876184627
CapsuleCollider2D:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4668322654876184655}
m_Enabled: 1
m_Density: 1
m_Material: {fileID: 0}
m_IsTrigger: 0
m_UsedByEffector: 0
m_UsedByComposite: 0
m_Offset: {x: 0, y: 0}
m_Size: {x: 1, y: 2}
m_Direction: 0
--- !u!114 &4668322654876184630
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4668322654876184655}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 62899f850307741f2a39c98a8b639597, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Actions: {fileID: -944628639613478452, guid: 34d55f77ac416ab45b29345bb7e6a913, type: 3}
m_NotificationBehavior: 2
m_UIInputModule: {fileID: 0}
m_DeviceLostEvent:
m_PersistentCalls:
m_Calls: []
m_DeviceRegainedEvent:
m_PersistentCalls:
m_Calls: []
m_ControlsChangedEvent:
m_PersistentCalls:
m_Calls: []
m_ActionEvents:
- m_PersistentCalls:
m_Calls:
- m_Target: {fileID: 4668322654876184624}
m_TargetAssemblyTypeName: CharacterInputController, Assembly-CSharp
m_MethodName: OnMove
m_Mode: 0
m_Arguments:
m_ObjectArgument: {fileID: 0}
m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine
m_IntArgument: 0
m_FloatArgument: 0
m_StringArgument:
m_BoolArgument: 0
m_CallState: 2
m_ActionId: d1943f36-92e5-4335-a3f3-dd2e9e553ba6
m_ActionName: Level/Move[/Keyboard/w,/Keyboard/s,/Keyboard/a,/Keyboard/d,/Keyboard/upArrow,/Keyboard/downArrow,/Keyboard/leftArrow,/Keyboard/rightArrow]
- m_PersistentCalls:
m_Calls:
- m_Target: {fileID: 4668322654876184624}
m_TargetAssemblyTypeName: CharacterInputController, Assembly-CSharp
m_MethodName: OnJump
m_Mode: 0
m_Arguments:
m_ObjectArgument: {fileID: 0}
m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine
m_IntArgument: 0
m_FloatArgument: 0
m_StringArgument:
m_BoolArgument: 0
m_CallState: 2
m_ActionId: e7ae7276-c64d-43bb-8719-ef3178e194a0
m_ActionName: Level/Jump[/Keyboard/space,/Keyboard/w]
m_NeverAutoSwitchControlSchemes: 0
m_DefaultControlScheme:
m_DefaultActionMap: Level
m_SplitScreenIndex: -1
m_Camera: {fileID: 0}
--- !u!114 &4668322654876184625
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4668322654876184655}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 32250bba13a1233448b3ff49db05c141, type: 3}
m_Name:
m_EditorClassIdentifier:
m_JumpForce: 100
m_WallJumpMultiplier: 3
m_CrouchSpeed: 0.36
m_MovementSmoothing: 0.05
m_AirControl: 1
m_WhatIsGround:
serializedVersion: 2
m_Bits: 512
m_GroundCheck: {fileID: 4668322656625073464}
m_CeilingCheck: {fileID: 4668322656710469013}
m_WallCheck: {fileID: 4668322655870949457}
m_CrouchDisableCollider: {fileID: 0}
OnLandEvent:
m_PersistentCalls:
m_Calls: []
OnCrouchEvent:
m_PersistentCalls:
m_Calls: []
--- !u!114 &4668322654876184624
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4668322654876184655}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: b0511d3cc433b7e41906b4911f68a962, type: 3}
m_Name:
m_EditorClassIdentifier:
m_characterController: {fileID: 4668322654876184625}
m_playerInput:
Variable: {fileID: 11400000, guid: ae129d59580dbe94fa385299e3dfb47d, type: 2}
m_useLocal: 0
m_localValue: 0
m_noInputAllowed:
Variable: {fileID: 11400000, guid: ea1cffffa7e1ed34ca1fe3d3af13777c, type: 2}
m_useLocal: 0
m_localValue: 0
m_speed: 2
--- !u!95 &4668322654876184631
Animator:
serializedVersion: 3
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4668322654876184655}
m_Enabled: 1
m_Avatar: {fileID: 0}
m_Controller: {fileID: 0}
m_CullingMode: 0
m_UpdateMode: 0
m_ApplyRootMotion: 0
m_LinearVelocityBlending: 0
m_WarningMessage:
m_HasTransformHierarchy: 1
m_AllowConstantClipSamplingOptimization: 1
m_KeepAnimatorControllerStateOnDisable: 0
--- !u!114 &-4453463038580551382
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4668322654876184655}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 49dda9eea2761864e9eac5cdb5c83f57, type: 3}
m_Name:
m_EditorClassIdentifier:
m_isPlayerDead:
Variable: {fileID: 11400000, guid: a1586014535831a4e80b30178ff5ced4, type: 2}
m_useLocal: 0
m_localValue: 0
--- !u!1 &4668322655423990996
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 4668322655423990997}
- component: {fileID: 4668322655423991003}
- component: {fileID: 4668322655423991002}
m_Layer: 7
m_Name: char_dude_sheet_0
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &4668322655423990997
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4668322655423990996}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0.063, y: 0.383, z: 0}
m_LocalScale: {x: 1.6666665, y: 1.6666665, z: 1.6666665}
m_Children: []
m_Father: {fileID: 4668322654876184626}
m_RootOrder: 3
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!212 &4668322655423991003
SpriteRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4668322655423990996}
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: 8758575904115477578, guid: aa8c58dcbc4c4a44891bacb2bc1e3480, 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.23, y: 0.25}
m_AdaptiveModeThreshold: 0.5
m_SpriteTileMode: 0
m_WasSpriteAssigned: 1
m_MaskInteraction: 0
m_SpriteSortPoint: 0
--- !u!95 &4668322655423991002
Animator:
serializedVersion: 3
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4668322655423990996}
m_Enabled: 1
m_Avatar: {fileID: 0}
m_Controller: {fileID: 9100000, guid: 49a569a83db15b14bb24e4093bd3b6de, 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 &4668322655870949456
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 4668322655870949457}
m_Layer: 7
m_Name: Hand
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &4668322655870949457
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4668322655870949456}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0.5, y: -0.3, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 4668322654876184626}
m_RootOrder: 2
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &4668322656625073467
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 4668322656625073464}
m_Layer: 7
m_Name: Feet
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &4668322656625073464
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4668322656625073467}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: -1, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 4668322654876184626}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &4668322656710469012
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 4668322656710469013}
m_Layer: 7
m_Name: Head
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &4668322656710469013
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4668322656710469012}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0.61, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 4668322654876184626}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}

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

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

+ 211
- 0
Assets/Prefabs/spikes_3.prefab View File

@ -0,0 +1,211 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &2568405382520894643
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 8078117592371321287}
- component: {fileID: 1043124044502169818}
- component: {fileID: 1793437425226485100}
- component: {fileID: 5792353894968254291}
m_Layer: 0
m_Name: spikes_3
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &8078117592371321287
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2568405382520894643}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: -8.62, y: -4.87, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:
- {fileID: 6045522938640616061}
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!212 &1043124044502169818
SpriteRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2568405382520894643}
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: -8328159106608433595, guid: d593933f03721d04b8e6a35a8ff8d5e3, 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, y: 1}
m_AdaptiveModeThreshold: 0.5
m_SpriteTileMode: 0
m_WasSpriteAssigned: 1
m_MaskInteraction: 0
m_SpriteSortPoint: 0
--- !u!61 &1793437425226485100
BoxCollider2D:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2568405382520894643}
m_Enabled: 1
m_Density: 1
m_Material: {fileID: 0}
m_IsTrigger: 1
m_UsedByEffector: 0
m_UsedByComposite: 0
m_Offset: {x: 0, y: 0}
m_SpriteTilingProperty:
border: {x: 0, y: 0, z: 0, w: 0}
pivot: {x: 0.5, y: 0.5}
oldSize: {x: 1, y: 1}
newSize: {x: 1, y: 1}
adaptiveTilingThreshold: 0.5
drawMode: 0
adaptiveTiling: 0
m_AutoTiling: 0
serializedVersion: 2
m_Size: {x: 1, y: 1}
m_EdgeRadius: 0
--- !u!114 &5792353894968254291
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2568405382520894643}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 1ac34d7ad4f935b4a92bff7901ea1180, type: 3}
m_Name:
m_EditorClassIdentifier:
m_isDead:
Variable: {fileID: 0}
m_useLocal: 1
m_localValue: 0
--- !u!1 &2740308402194940216
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 6045522938640616061}
- component: {fileID: 2090863402335022966}
m_Layer: 0
m_Name: we
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &6045522938640616061
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2740308402194940216}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0.47, y: 0.79, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 8078117592371321287}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!212 &2090863402335022966
SpriteRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2740308402194940216}
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: -2413806693520163455, guid: ebe73ca9363db456bacf42c025bb4847, 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, y: 1}
m_AdaptiveModeThreshold: 0.5
m_SpriteTileMode: 0
m_WasSpriteAssigned: 1
m_MaskInteraction: 0
m_SpriteSortPoint: 0

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

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

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

size 285040

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

size 1728849

+ 30
- 0
Assets/Scripts/CameraFollower.cs View File

@ -0,0 +1,30 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CameraFollower : MonoBehaviour
{
public GameObject Player;
[SerializeField] private float m_FollowStrength = 3f;
[SerializeField] private bool m_FollowX = true;
[SerializeField] private bool m_FollowY = false;
private Camera m_Camera;
private void Start()
{
m_Camera = GetComponent<Camera>();
}
private void Update()
{
if(Mathf.Abs(Player.transform.position.x - m_Camera.transform.position.x) > m_FollowStrength)
{
m_Camera.transform.Translate(
m_FollowX ? (m_FollowStrength + Player.transform.position.x - m_Camera.transform.position.x) * Time.deltaTime : 0,
m_FollowY ? (m_FollowStrength + Player.transform.position.y - m_Camera.transform.position.y) * Time.deltaTime : 0,
0);
}
}
}

+ 11
- 0
Assets/Scripts/CameraFollower.cs.meta View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 2b7796aef2c9a634e943d7b131c0b13f
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

+ 37
- 0
Assets/Scripts/Character/CharacterReset.cs View File

@ -0,0 +1,37 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Variables;
public class CharacterReset : MonoBehaviour, IResettable
{
[SerializeField, Header("References")]
Reference<bool> m_isPlayerDead;
private Vector3 m_startPosition;
private Quaternion m_startRotation;
public void OnLevelLoad()
{
m_startPosition = transform.position;
m_startRotation = transform.rotation;
}
public void OnResetEnd()
{
}
public IEnumerator OnResetStart(float time)
{
transform.position = m_startPosition;
transform.rotation = m_startRotation;
m_isPlayerDead.Value = false;
yield break;
}
}

+ 11
- 0
Assets/Scripts/Character/CharacterReset.cs.meta View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 49dda9eea2761864e9eac5cdb5c83f57
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

+ 13
- 9
Assets/Scripts/DarknessController.cs View File

@ -10,6 +10,9 @@ public class DarknessController : MonoBehaviour
[SerializeField, Header("References")] [SerializeField, Header("References")]
private Material m_darknessMat; private Material m_darknessMat;
[SerializeField]
private Reference<float> m_lightLevel;
[SerializeField] [SerializeField]
private Reference<bool> m_isInputDown; private Reference<bool> m_isInputDown;
@ -23,8 +26,7 @@ public class DarknessController : MonoBehaviour
private AnimationCurve m_lightCurve = AnimationCurve.Linear(0,0,1,1); private AnimationCurve m_lightCurve = AnimationCurve.Linear(0,0,1,1);
[ShowNonSerializedField]
private float m_currentDarknessLevel = 1;
[ShowNonSerializedField] [ShowNonSerializedField]
private bool m_isDarknessChanging; private bool m_isDarknessChanging;
@ -32,13 +34,15 @@ public class DarknessController : MonoBehaviour
private void OnEnable() private void OnEnable()
{ {
m_isInputDown.OnValueChanged += OnInputChange; m_isInputDown.OnValueChanged += OnInputChange;
m_darknessMat.SetFloat("_Apply",1);
m_darknessMat.SetFloat("_Apply", 1);
m_lightLevel.Value = 1;
} }
private void OnDisable() private void OnDisable()
{ {
m_isInputDown.OnValueChanged -= OnInputChange; m_isInputDown.OnValueChanged -= OnInputChange;
m_darknessMat.SetFloat("_Apply", 1); m_darknessMat.SetFloat("_Apply", 1);
m_lightLevel.Value = 1;
} }
@ -69,24 +73,24 @@ public class DarknessController : MonoBehaviour
private IEnumerator ChangeDarkness(float end, float time, AnimationCurve curve) private IEnumerator ChangeDarkness(float end, float time, AnimationCurve curve)
{ {
float start = m_currentDarknessLevel;
float start = m_lightLevel;
float elapsedTime = 0; float elapsedTime = 0;
time = Mathf.InverseLerp(end, start, m_currentDarknessLevel) * time;
time = Mathf.InverseLerp(end, start, m_lightLevel) * time;
m_isDarknessChanging = true; m_isDarknessChanging = true;
while(elapsedTime < time) while(elapsedTime < time)
{ {
m_currentDarknessLevel = Mathf.Lerp(start, end, curve.Evaluate(elapsedTime / time));
m_darknessMat.SetFloat("_Apply", m_currentDarknessLevel);
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_currentDarknessLevel = end;
m_darknessMat.SetFloat("_Apply", m_currentDarknessLevel);
m_lightLevel.Value = end;
m_darknessMat.SetFloat("_Apply", m_lightLevel);
} }

+ 14
- 0
Assets/Scripts/IResettable.cs View File

@ -0,0 +1,14 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public interface IResettable
{
public void OnLevelLoad();
public IEnumerator OnResetStart(float time);
public void OnResetEnd();
}

+ 11
- 0
Assets/Scripts/IResettable.cs.meta View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: ad996d168724ecc4e88b3854210fcbfc
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

+ 19
- 0
Assets/Scripts/KillPlayer.cs View File

@ -0,0 +1,19 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Variables;
public class KillPlayer : MonoBehaviour
{
[SerializeField]
private Reference<bool> m_isDead;
private void OnTriggerEnter2D(Collider2D collision)
{
if (collision.CompareTag("Player"))
m_isDead.Value = true;
}
}

+ 11
- 0
Assets/Scripts/KillPlayer.cs.meta View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 1ac34d7ad4f935b4a92bff7901ea1180
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

+ 113
- 0
Assets/Scripts/LevelManager.cs View File

@ -0,0 +1,113 @@
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
using NaughtyAttributes;
using Variables;
public class LevelManager : MonoBehaviour
{
[SerializeField, Header("References")]
Reference<bool> m_isPlayerDead;
[SerializeField]
Reference<bool> m_freezePlayer;
[SerializeField]
Reference<bool> m_isVictory;
[SerializeField]
Reference<float> m_timer;
[SerializeField, BoxGroup("Level Settings")]
private string m_levelName = "Level 1";
[SerializeField, BoxGroup("Level Settings")]
private float m_timeInLevel = 10;
[SerializeField]
private float m_resetTime = 1;
[SerializeField]
private string m_nextSceneToLoad = "Level 2";
private IResettable[] m_allResetable;
private void Start()
{
m_allResetable = FindObjectsOfType<MonoBehaviour>().OfType<IResettable>().ToArray();
m_timer.Value = m_timeInLevel;
foreach (IResettable resettable in m_allResetable)
{
resettable.OnLevelLoad();
}
}
private void Update()
{
if (!m_freezePlayer)
m_timer.Value -= Time.deltaTime;
}
private void OnEnable()
{
m_isPlayerDead.OnValueChanged += OnPlayerDeadChange;
m_isVictory.OnValueChanged += OnPlayerVictoryChange;
}
private void OnDisable()
{
m_isPlayerDead.OnValueChanged -= OnPlayerDeadChange;
m_isVictory.OnValueChanged -= OnPlayerVictoryChange;
}
private IEnumerator DeathRoutine()
{
m_freezePlayer.Value = true;
m_timer.Value = m_timeInLevel;
foreach (IResettable resettable in m_allResetable)
StartCoroutine(resettable.OnResetStart(m_resetTime));
yield return new WaitForSeconds(m_resetTime);
foreach (IResettable resettable in m_allResetable)
resettable.OnResetEnd();
m_freezePlayer.Value = false;
}
private void OnPlayerDeadChange(bool value)
{
if (value)
{
StartCoroutine(DeathRoutine());
}
}
private void OnPlayerVictoryChange(bool value)
{
}
}

+ 11
- 0
Assets/Scripts/LevelManager.cs.meta View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 2022aae2eff786945bf401469695230a
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

+ 62
- 0
Assets/Scripts/SneakyTextController.cs View File

@ -0,0 +1,62 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Variables;
public class SneakyTextController : MonoBehaviour
{
[SerializeField]
private Reference<float> m_lightLevel;
[SerializeField]
private Reference<bool> m_freezePlayer;
[SerializeField]
private float m_time = 10;
[SerializeField]
private TMPro.TextMeshProUGUI m_text;
private bool m_hasTriggered = false;
private void OnEnable()
{
m_lightLevel.OnValueChanged += OnLightChange;
}
private void OnDisable()
{
m_lightLevel.OnValueChanged -= OnLightChange;
}
private void Start()
{
m_text.gameObject.SetActive(false);
}
private void OnLightChange(float value)
{
Color color = m_text.color;
color.a = 1 - m_lightLevel;
m_text.color = color;
if (!m_hasTriggered && !m_freezePlayer)
{
m_hasTriggered = true;
StartCoroutine(Timer( m_time));
}
}
private IEnumerator Timer(float time)
{
Debug.Log("here");
m_text.gameObject.SetActive(true);
yield return new WaitForSeconds(time);
m_text.gameObject.SetActive(false);
}
}

+ 11
- 0
Assets/Scripts/SneakyTextController.cs.meta View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: d6f991527b7c3d5419b9f5e0f73d598d
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

+ 14
- 2
Assets/Scripts/TextController.cs View File

@ -5,7 +5,7 @@ using UnityEngine.UI;
using TMPro; using TMPro;
using NaughtyAttributes; using NaughtyAttributes;
public class TextController : MonoBehaviour
public class TextController : MonoBehaviour, IResettable
{ {
[SerializeField] [SerializeField]
@ -139,10 +139,22 @@ public class TextController : MonoBehaviour
m_goText.gameObject.SetActive(false); m_goText.gameObject.SetActive(false);
} }
public void OnLevelLoad()
{
}
public IEnumerator OnResetStart(float time)
{
yield return new WaitForSeconds(time - gotime);
m_goText.gameObject.SetActive(true);
yield return new WaitForSeconds(gotime);
m_goText.gameObject.SetActive(false);
}
public void OnResetEnd()
{
}
} }

+ 34
- 0
Assets/Scripts/TimerController.cs View File

@ -0,0 +1,34 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using TMPro;
using Variables;
public class TimerController : MonoBehaviour
{
[SerializeField]
private Reference<float> m_time;
private Color m_defaultColor;
private void OnEnable()
{
m_time.OnValueChanged += OnTimeChange;
}
private void OnDisable()
{
m_time.OnValueChanged -= OnTimeChange;
}
private void OnTimeChange(float value)
{
}
}

+ 11
- 0
Assets/Scripts/TimerController.cs.meta View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 5e65af424b40dd845ae91bb2d24af0c9
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

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

size 465

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

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

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

size 459

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

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

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

size 466

Assets/Variables/Runtime/isNoInput.asset.meta → Assets/Variables/Runtime/freezePlayer.asset.meta View File


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

size 463

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

size 466

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

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

Loading…
Cancel
Save