diff --git a/Assets/Prefabs/Enemies/EnemyWalker.prefab b/Assets/Prefabs/Enemies/EnemyWalker.prefab index 6c0b7afe..fb6d1ac4 100644 --- a/Assets/Prefabs/Enemies/EnemyWalker.prefab +++ b/Assets/Prefabs/Enemies/EnemyWalker.prefab @@ -44,7 +44,7 @@ ParticleSystem: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1352256761504476} - serializedVersion: 6 + serializedVersion: 7 lengthInSec: 1000 simulationSpeed: 1 stopAction: 0 @@ -2188,6 +2188,62 @@ ParticleSystem: m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 + LifetimeByEmitterSpeedModule: + enabled: 0 + m_Curve: + serializedVersion: 2 + minMaxState: 1 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: -0.8 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0.2 + inSlope: -0.8 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + m_Range: {x: 0, y: 1} ForceModule: enabled: 0 x: @@ -3618,19 +3674,20 @@ ParticleSystem: range: {x: 0, y: 1} CollisionModule: enabled: 1 - serializedVersion: 3 + serializedVersion: 4 type: 1 collisionMode: 1 colliderForce: 0 multiplyColliderForceByParticleSize: 0 multiplyColliderForceByParticleSpeed: 0 multiplyColliderForceByCollisionAngle: 1 - plane0: {fileID: 0} - plane1: {fileID: 0} - plane2: {fileID: 0} - plane3: {fileID: 0} - plane4: {fileID: 0} - plane5: {fileID: 0} + m_Planes: + - {fileID: 0} + - {fileID: 0} + - {fileID: 0} + - {fileID: 0} + - {fileID: 0} + - {fileID: 0} m_Dampen: serializedVersion: 2 minMaxState: 0 @@ -3804,17 +3861,20 @@ ParticleSystem: interiorCollisions: 0 TriggerModule: enabled: 0 - collisionShape0: {fileID: 0} - collisionShape1: {fileID: 0} - collisionShape2: {fileID: 0} - collisionShape3: {fileID: 0} - collisionShape4: {fileID: 0} - collisionShape5: {fileID: 0} + serializedVersion: 2 inside: 1 outside: 0 enter: 0 exit: 0 + colliderQueryMode: 0 radiusScale: 1 + primitives: + - {fileID: 0} + - {fileID: 0} + - {fileID: 0} + - {fileID: 0} + - {fileID: 0} + - {fileID: 0} SubModule: serializedVersion: 2 enabled: 0 @@ -4769,6 +4829,7 @@ ParticleSystemRenderer: m_LightProbeUsage: 0 m_ReflectionProbeUsage: 0 m_RayTracingMode: 0 + m_RayTraceProcedural: 0 m_RenderingLayerMask: 4294967295 m_RendererPriority: 0 m_Materials: @@ -4811,6 +4872,8 @@ ParticleSystemRenderer: m_EnableGPUInstancing: 1 m_ApplyActiveColorSpace: 1 m_AllowRoll: 1 + m_FreeformStretching: 0 + m_RotateWithStretchDirection: 1 m_VertexStreams: 00010304 m_Mesh: {fileID: 0} m_Mesh1: {fileID: 0} @@ -4971,6 +5034,7 @@ MonoBehaviour: m_EditorClassIdentifier: minGroundNormalY: 0.65 gravityModifier: 3 + rb2d: {fileID: 50673192763084334} contactFilter: useTriggers: 0 useLayerMask: 1 @@ -4991,22 +5055,21 @@ MonoBehaviour: serializedVersion: 2 m_Bits: 16640 enemyType: 0 - maxSpeed: 3 + attentionRange: 1.09 changeDirectionEase: 2 + followPlayer: 0 flipWhenTurning: 0 + hurtLaunchPower: 14 + jumping: 0 + jumpPower: 7 + maxSpeed: 3 maxSpeedDeviation: 1 - sitStillWhenNotFollowing: 0 neverStopFollowing: 0 - jumpPower: 7 rayCastSize: {x: 1.5, y: 1} - launch: 1 - hurtLaunchPower: 14 - jumping: 0 rayCastOffset: {x: 1, y: 0.46} - followPlayer: 0 - attentionRange: 1.09 - stepSound: {fileID: 0} + sitStillWhenNotFollowing: 0 jumpSound: {fileID: 8300000, guid: a69256e0605cd46c19e2fe34da9587b5, type: 3} + stepSound: {fileID: 0} --- !u!114 &114242110960759840 MonoBehaviour: m_ObjectHideFlags: 0 @@ -5240,8 +5303,6 @@ MonoBehaviour: m_Name: m_EditorClassIdentifier: recoveryTime: 0.1 - counter: 0 - recovering: 0 --- !u!1 &1436683220433172 GameObject: m_ObjectHideFlags: 0 @@ -5281,7 +5342,7 @@ ParticleSystem: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1436683220433172} - serializedVersion: 6 + serializedVersion: 7 lengthInSec: 1000 simulationSpeed: 1 stopAction: 0 @@ -7425,6 +7486,62 @@ ParticleSystem: m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 + LifetimeByEmitterSpeedModule: + enabled: 0 + m_Curve: + serializedVersion: 2 + minMaxState: 1 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: -0.8 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0.2 + inSlope: -0.8 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + m_Range: {x: 0, y: 1} ForceModule: enabled: 0 x: @@ -8855,19 +8972,20 @@ ParticleSystem: range: {x: 0, y: 1} CollisionModule: enabled: 1 - serializedVersion: 3 + serializedVersion: 4 type: 1 collisionMode: 1 colliderForce: 0 multiplyColliderForceByParticleSize: 0 multiplyColliderForceByParticleSpeed: 0 multiplyColliderForceByCollisionAngle: 1 - plane0: {fileID: 0} - plane1: {fileID: 0} - plane2: {fileID: 0} - plane3: {fileID: 0} - plane4: {fileID: 0} - plane5: {fileID: 0} + m_Planes: + - {fileID: 0} + - {fileID: 0} + - {fileID: 0} + - {fileID: 0} + - {fileID: 0} + - {fileID: 0} m_Dampen: serializedVersion: 2 minMaxState: 0 @@ -9041,17 +9159,20 @@ ParticleSystem: interiorCollisions: 0 TriggerModule: enabled: 0 - collisionShape0: {fileID: 0} - collisionShape1: {fileID: 0} - collisionShape2: {fileID: 0} - collisionShape3: {fileID: 0} - collisionShape4: {fileID: 0} - collisionShape5: {fileID: 0} + serializedVersion: 2 inside: 1 outside: 0 enter: 0 exit: 0 + colliderQueryMode: 0 radiusScale: 1 + primitives: + - {fileID: 0} + - {fileID: 0} + - {fileID: 0} + - {fileID: 0} + - {fileID: 0} + - {fileID: 0} SubModule: serializedVersion: 2 enabled: 0 @@ -10006,6 +10127,7 @@ ParticleSystemRenderer: m_LightProbeUsage: 0 m_ReflectionProbeUsage: 0 m_RayTracingMode: 0 + m_RayTraceProcedural: 0 m_RenderingLayerMask: 4294967295 m_RendererPriority: 0 m_Materials: @@ -10048,6 +10170,8 @@ ParticleSystemRenderer: m_EnableGPUInstancing: 1 m_ApplyActiveColorSpace: 1 m_AllowRoll: 1 + m_FreeformStretching: 0 + m_RotateWithStretchDirection: 1 m_VertexStreams: 00010304 m_Mesh: {fileID: 0} m_Mesh1: {fileID: 0} @@ -10093,7 +10217,7 @@ ParticleSystem: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1857230878499620} - serializedVersion: 6 + serializedVersion: 7 lengthInSec: 1 simulationSpeed: 1 stopAction: 0 @@ -12237,6 +12361,62 @@ ParticleSystem: m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 + LifetimeByEmitterSpeedModule: + enabled: 0 + m_Curve: + serializedVersion: 2 + minMaxState: 1 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: -0.8 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0.2 + inSlope: -0.8 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + m_Range: {x: 0, y: 1} ForceModule: enabled: 0 x: @@ -13667,19 +13847,20 @@ ParticleSystem: range: {x: 0, y: 1} CollisionModule: enabled: 0 - serializedVersion: 3 + serializedVersion: 4 type: 0 collisionMode: 0 colliderForce: 0 multiplyColliderForceByParticleSize: 0 multiplyColliderForceByParticleSpeed: 0 multiplyColliderForceByCollisionAngle: 1 - plane0: {fileID: 0} - plane1: {fileID: 0} - plane2: {fileID: 0} - plane3: {fileID: 0} - plane4: {fileID: 0} - plane5: {fileID: 0} + m_Planes: + - {fileID: 0} + - {fileID: 0} + - {fileID: 0} + - {fileID: 0} + - {fileID: 0} + - {fileID: 0} m_Dampen: serializedVersion: 2 minMaxState: 0 @@ -13853,17 +14034,20 @@ ParticleSystem: interiorCollisions: 0 TriggerModule: enabled: 0 - collisionShape0: {fileID: 0} - collisionShape1: {fileID: 0} - collisionShape2: {fileID: 0} - collisionShape3: {fileID: 0} - collisionShape4: {fileID: 0} - collisionShape5: {fileID: 0} + serializedVersion: 2 inside: 1 outside: 0 enter: 0 exit: 0 + colliderQueryMode: 0 radiusScale: 1 + primitives: + - {fileID: 0} + - {fileID: 0} + - {fileID: 0} + - {fileID: 0} + - {fileID: 0} + - {fileID: 0} SubModule: serializedVersion: 2 enabled: 0 @@ -14818,6 +15002,7 @@ ParticleSystemRenderer: m_LightProbeUsage: 0 m_ReflectionProbeUsage: 0 m_RayTracingMode: 0 + m_RayTraceProcedural: 0 m_RenderingLayerMask: 4294967295 m_RendererPriority: 0 m_Materials: @@ -14860,6 +15045,8 @@ ParticleSystemRenderer: m_EnableGPUInstancing: 1 m_ApplyActiveColorSpace: 1 m_AllowRoll: 1 + m_FreeformStretching: 0 + m_RotateWithStretchDirection: 1 m_VertexStreams: 00010304 m_Mesh: {fileID: 0} m_Mesh1: {fileID: 0} @@ -14915,6 +15102,7 @@ SpriteRenderer: m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 m_RayTracingMode: 0 + m_RayTraceProcedural: 0 m_RenderingLayerMask: 4294967295 m_RendererPriority: 0 m_Materials: @@ -15057,7 +15245,7 @@ ParticleSystem: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1920424172144604} - serializedVersion: 6 + serializedVersion: 7 lengthInSec: 0.5 simulationSpeed: 1 stopAction: 0 @@ -17201,6 +17389,62 @@ ParticleSystem: m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 + LifetimeByEmitterSpeedModule: + enabled: 0 + m_Curve: + serializedVersion: 2 + minMaxState: 1 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: -0.8 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0.2 + inSlope: -0.8 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + m_Range: {x: 0, y: 1} ForceModule: enabled: 0 x: @@ -18631,19 +18875,20 @@ ParticleSystem: range: {x: 0, y: 1} CollisionModule: enabled: 0 - serializedVersion: 3 + serializedVersion: 4 type: 1 collisionMode: 1 colliderForce: 0 multiplyColliderForceByParticleSize: 0 multiplyColliderForceByParticleSpeed: 0 multiplyColliderForceByCollisionAngle: 1 - plane0: {fileID: 0} - plane1: {fileID: 0} - plane2: {fileID: 0} - plane3: {fileID: 0} - plane4: {fileID: 0} - plane5: {fileID: 0} + m_Planes: + - {fileID: 0} + - {fileID: 0} + - {fileID: 0} + - {fileID: 0} + - {fileID: 0} + - {fileID: 0} m_Dampen: serializedVersion: 2 minMaxState: 0 @@ -18817,17 +19062,20 @@ ParticleSystem: interiorCollisions: 0 TriggerModule: enabled: 0 - collisionShape0: {fileID: 0} - collisionShape1: {fileID: 0} - collisionShape2: {fileID: 0} - collisionShape3: {fileID: 0} - collisionShape4: {fileID: 0} - collisionShape5: {fileID: 0} + serializedVersion: 2 inside: 1 outside: 0 enter: 0 exit: 0 + colliderQueryMode: 0 radiusScale: 1 + primitives: + - {fileID: 0} + - {fileID: 0} + - {fileID: 0} + - {fileID: 0} + - {fileID: 0} + - {fileID: 0} SubModule: serializedVersion: 2 enabled: 0 @@ -19782,6 +20030,7 @@ ParticleSystemRenderer: m_LightProbeUsage: 0 m_ReflectionProbeUsage: 0 m_RayTracingMode: 0 + m_RayTraceProcedural: 0 m_RenderingLayerMask: 4294967295 m_RendererPriority: 0 m_Materials: @@ -19824,6 +20073,8 @@ ParticleSystemRenderer: m_EnableGPUInstancing: 1 m_ApplyActiveColorSpace: 1 m_AllowRoll: 1 + m_FreeformStretching: 0 + m_RotateWithStretchDirection: 1 m_VertexStreams: 00010304 m_Mesh: {fileID: 0} m_Mesh1: {fileID: 0} @@ -19869,7 +20120,7 @@ ParticleSystem: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1985583162212600} - serializedVersion: 6 + serializedVersion: 7 lengthInSec: 0.1 simulationSpeed: 1 stopAction: 0 @@ -22013,6 +22264,62 @@ ParticleSystem: m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 + LifetimeByEmitterSpeedModule: + enabled: 0 + m_Curve: + serializedVersion: 2 + minMaxState: 1 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: -0.8 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0.2 + inSlope: -0.8 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + m_Range: {x: 0, y: 1} ForceModule: enabled: 0 x: @@ -23443,19 +23750,20 @@ ParticleSystem: range: {x: 0, y: 1} CollisionModule: enabled: 0 - serializedVersion: 3 + serializedVersion: 4 type: 1 collisionMode: 1 colliderForce: 0 multiplyColliderForceByParticleSize: 0 multiplyColliderForceByParticleSpeed: 0 multiplyColliderForceByCollisionAngle: 1 - plane0: {fileID: 0} - plane1: {fileID: 0} - plane2: {fileID: 0} - plane3: {fileID: 0} - plane4: {fileID: 0} - plane5: {fileID: 0} + m_Planes: + - {fileID: 0} + - {fileID: 0} + - {fileID: 0} + - {fileID: 0} + - {fileID: 0} + - {fileID: 0} m_Dampen: serializedVersion: 2 minMaxState: 0 @@ -23629,17 +23937,20 @@ ParticleSystem: interiorCollisions: 0 TriggerModule: enabled: 0 - collisionShape0: {fileID: 0} - collisionShape1: {fileID: 0} - collisionShape2: {fileID: 0} - collisionShape3: {fileID: 0} - collisionShape4: {fileID: 0} - collisionShape5: {fileID: 0} + serializedVersion: 2 inside: 1 outside: 0 enter: 0 exit: 0 + colliderQueryMode: 0 radiusScale: 1 + primitives: + - {fileID: 0} + - {fileID: 0} + - {fileID: 0} + - {fileID: 0} + - {fileID: 0} + - {fileID: 0} SubModule: serializedVersion: 2 enabled: 0 @@ -24594,6 +24905,7 @@ ParticleSystemRenderer: m_LightProbeUsage: 0 m_ReflectionProbeUsage: 0 m_RayTracingMode: 0 + m_RayTraceProcedural: 0 m_RenderingLayerMask: 4294967295 m_RendererPriority: 0 m_Materials: @@ -24636,6 +24948,8 @@ ParticleSystemRenderer: m_EnableGPUInstancing: 1 m_ApplyActiveColorSpace: 1 m_AllowRoll: 1 + m_FreeformStretching: 0 + m_RotateWithStretchDirection: 1 m_VertexStreams: 00010304 m_Mesh: {fileID: 0} m_Mesh1: {fileID: 0} @@ -24688,6 +25002,7 @@ SpriteRenderer: m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 m_RayTracingMode: 0 + m_RayTraceProcedural: 0 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: diff --git a/Assets/Prefabs/StartUp/Cameras.prefab b/Assets/Prefabs/StartUp/Cameras.prefab index 1ce5da14..6eb0f337 100644 --- a/Assets/Prefabs/StartUp/Cameras.prefab +++ b/Assets/Prefabs/StartUp/Cameras.prefab @@ -84,6 +84,7 @@ MonoBehaviour: m_LockStageInInspector: m_StreamingVersion: 20170927 m_Priority: 10 + m_StandbyUpdate: 2 m_LookAt: {fileID: 0} m_Follow: {fileID: 0} m_Lens: @@ -92,6 +93,14 @@ MonoBehaviour: NearClipPlane: 0.1 FarClipPlane: 5000 Dutch: 0 + LensShift: {x: 0, y: 0} + m_Transitions: + m_BlendHint: 0 + m_InheritPosition: 0 + m_OnCameraLive: + m_PersistentCalls: + m_Calls: [] + m_LegacyBlendHint: 0 m_ComponentOwner: {fileID: 4880036768425510} --- !u!114 &114826505657298220 MonoBehaviour: @@ -187,9 +196,11 @@ MonoBehaviour: m_EditorClassIdentifier: m_LookaheadTime: 0 m_LookaheadSmoothing: 3 + m_LookaheadIgnoreY: 0 m_XDamping: 1.3 m_YDamping: 1 m_ZDamping: 1 + m_TargetMovementOnly: 0 m_ScreenX: 0.5 m_ScreenY: 0.723 m_CameraDistance: 10 @@ -201,6 +212,7 @@ MonoBehaviour: m_SoftZoneHeight: 1.11 m_BiasX: 0 m_BiasY: 0 + m_CenterOnActivate: 1 m_GroupFramingMode: 2 m_AdjustmentMode: 2 m_GroupFramingSize: 0.8 @@ -225,8 +237,10 @@ MonoBehaviour: m_Name: m_EditorClassIdentifier: m_NoiseProfile: {fileID: 11400000, guid: b241f91b9ccf8ff489abf204b30d3112, type: 2} + m_PivotOffset: {x: 0, y: 0, z: 0} m_AmplitudeGain: 0.3 m_FrequencyGain: 2.135592e-19 + mNoiseOffsets: {x: 0, y: 0, z: 0} --- !u!1 &1884548363852062 GameObject: m_ObjectHideFlags: 0 @@ -239,9 +253,6 @@ GameObject: - component: {fileID: 20682906277557268} - component: {fileID: 81810105363897254} - component: {fileID: 114676595278818560} - - component: {fileID: 114779388604134948} - - component: {fileID: 1979371213} - - component: {fileID: 1979371212} m_Layer: 17 m_Name: Main Camera m_TagString: MainCamera @@ -331,9 +342,16 @@ MonoBehaviour: m_IgnoreTimeScale: 0 m_WorldUpOverride: {fileID: 0} m_UpdateMethod: 2 + m_BlendUpdateMethod: 1 m_DefaultBlend: m_Style: 1 m_Time: 2 + m_CustomCurve: + serializedVersion: 2 + m_Curve: [] + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 m_CustomBlends: {fileID: 0} m_CameraCutEvent: m_PersistentCalls: @@ -341,95 +359,6 @@ MonoBehaviour: m_CameraActivatedEvent: m_PersistentCalls: m_Calls: [] ---- !u!114 &114779388604134948 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1884548363852062} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: d2da2b35a87c240cba9b1e74c36efc12, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!114 &1979371213 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1884548363852062} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 948f4100a11a5c24981795d21301da5c, type: 3} - m_Name: - m_EditorClassIdentifier: - volumeTrigger: {fileID: 0} - volumeLayer: - serializedVersion: 2 - m_Bits: 131072 - stopNaNPropagation: 1 - finalBlitToCameraTarget: 0 - antialiasingMode: 0 - temporalAntialiasing: - jitterSpread: 0.75 - sharpness: 0.25 - stationaryBlending: 0.95 - motionBlending: 0.85 - subpixelMorphologicalAntialiasing: - quality: 2 - fastApproximateAntialiasing: - fastMode: 0 - keepAlpha: 0 - fog: - enabled: 1 - excludeSkybox: 1 - debugLayer: - lightMeter: - width: 512 - height: 256 - showCurves: 1 - histogram: - width: 512 - height: 256 - channel: 3 - waveform: - exposure: 0.12 - height: 256 - vectorscope: - size: 256 - exposure: 0.12 - overlaySettings: - linearDepth: 0 - motionColorIntensity: 4 - motionGridSize: 64 - colorBlindnessType: 0 - colorBlindnessStrength: 1 - m_Resources: {fileID: 11400000, guid: d82512f9c8e5d4a4d938b575d47f88d4, type: 2} - m_ShowToolkit: 0 - m_ShowCustomSorter: 0 - breakBeforeColorGrading: 0 - m_BeforeTransparentBundles: [] - m_BeforeStackBundles: [] - m_AfterStackBundles: [] ---- !u!114 &1979371212 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1884548363852062} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 8b9a305e18de0c04dbd257a21cd47087, type: 3} - m_Name: - m_EditorClassIdentifier: - sharedProfile: {fileID: 11400000, guid: 4dee51f7f754a774ebdce88167bae83e, type: 2} - isGlobal: 1 - blendDistance: 0 - weight: 1 - priority: 0 --- !u!1 &7016830368656799714 GameObject: m_ObjectHideFlags: 0 diff --git a/Assets/Prefabs/StartUp/Player.prefab b/Assets/Prefabs/StartUp/Player.prefab index ba6f4274..11ac1b69 100644 --- a/Assets/Prefabs/StartUp/Player.prefab +++ b/Assets/Prefabs/StartUp/Player.prefab @@ -49,6 +49,7 @@ SpriteRenderer: m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 m_RayTracingMode: 0 + m_RayTraceProcedural: 0 m_RenderingLayerMask: 4294967295 m_RendererPriority: 0 m_Materials: @@ -71,7 +72,7 @@ SpriteRenderer: m_AutoUVMaxAngle: 89 m_LightmapParameters: {fileID: 0} m_SortingLayerID: -1524664889 - m_SortingLayer: 0 + m_SortingLayer: 6 m_SortingOrder: 1 m_Sprite: {fileID: 21300000, guid: 1cece6b8e403544279b30b97a7ce2d13, type: 3} m_Color: {r: 1, g: 0, b: 0, a: 0} @@ -374,7 +375,7 @@ SortingGroup: m_GameObject: {fileID: 1401446081381832} m_Enabled: 1 m_SortingLayerID: -525760289 - m_SortingLayer: 0 + m_SortingLayer: -1 m_SortingOrder: 0 --- !u!114 &114355383212365724 MonoBehaviour: @@ -390,6 +391,7 @@ MonoBehaviour: m_EditorClassIdentifier: minGroundNormalY: 0.65 gravityModifier: 3.2 + rb2d: {fileID: 50188015848557130} contactFilter: useTriggers: 0 useLayerMask: 1 @@ -409,12 +411,12 @@ MonoBehaviour: attackHit: {fileID: 1376248496002076} cameraEffects: {fileID: 0} deathParticles: {fileID: 1084583076897638173} - flameParticlesAudioSource: {fileID: 0} + flameParticlesAudioSource: {fileID: 82062164014661386} graphic: {fileID: 1401446081381832} graphicSprites: [] jumpParticles: {fileID: 4470067107435685217} pauseMenu: {fileID: 0} - recoveryCounter: {fileID: 0} + recoveryCounter: {fileID: 647812660725927313} cheatItems: [] dead: 0 frozen: 0 @@ -512,7 +514,7 @@ ParticleSystem: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1753547995046968} - serializedVersion: 6 + serializedVersion: 7 lengthInSec: 1 simulationSpeed: 1 stopAction: 0 @@ -2598,6 +2600,62 @@ ParticleSystem: m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 + LifetimeByEmitterSpeedModule: + enabled: 0 + m_Curve: + serializedVersion: 2 + minMaxState: 1 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: -0.8 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0.2 + inSlope: -0.8 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + m_Range: {x: 0, y: 1} ForceModule: enabled: 0 x: @@ -4028,19 +4086,20 @@ ParticleSystem: range: {x: 0, y: 1} CollisionModule: enabled: 0 - serializedVersion: 3 + serializedVersion: 4 type: 1 collisionMode: 1 colliderForce: 0 multiplyColliderForceByParticleSize: 0 multiplyColliderForceByParticleSpeed: 0 multiplyColliderForceByCollisionAngle: 1 - plane0: {fileID: 0} - plane1: {fileID: 0} - plane2: {fileID: 0} - plane3: {fileID: 0} - plane4: {fileID: 0} - plane5: {fileID: 0} + m_Planes: + - {fileID: 0} + - {fileID: 0} + - {fileID: 0} + - {fileID: 0} + - {fileID: 0} + - {fileID: 0} m_Dampen: serializedVersion: 2 minMaxState: 0 @@ -4214,17 +4273,20 @@ ParticleSystem: interiorCollisions: 0 TriggerModule: enabled: 0 - collisionShape0: {fileID: 0} - collisionShape1: {fileID: 0} - collisionShape2: {fileID: 0} - collisionShape3: {fileID: 0} - collisionShape4: {fileID: 0} - collisionShape5: {fileID: 0} + serializedVersion: 2 inside: 1 outside: 0 enter: 0 exit: 0 + colliderQueryMode: 0 radiusScale: 1 + primitives: + - {fileID: 0} + - {fileID: 0} + - {fileID: 0} + - {fileID: 0} + - {fileID: 0} + - {fileID: 0} SubModule: serializedVersion: 2 enabled: 0 @@ -5179,11 +5241,11 @@ ParticleSystemRenderer: m_LightProbeUsage: 0 m_ReflectionProbeUsage: 0 m_RayTracingMode: 0 + m_RayTraceProcedural: 0 m_RenderingLayerMask: 4294967295 m_RendererPriority: 0 m_Materials: - {fileID: 2100000, guid: c530408e808a8487ebec919713036fe1, type: 2} - - {fileID: 2100000, guid: c530408e808a8487ebec919713036fe1, type: 2} m_StaticBatchInfo: firstSubMesh: 0 subMeshCount: 0 @@ -5202,7 +5264,7 @@ ParticleSystemRenderer: m_AutoUVMaxAngle: 89 m_LightmapParameters: {fileID: 0} m_SortingLayerID: -525760289 - m_SortingLayer: 0 + m_SortingLayer: -1 m_SortingOrder: 2 m_RenderMode: 0 m_SortMode: 0 @@ -5221,6 +5283,8 @@ ParticleSystemRenderer: m_EnableGPUInstancing: 1 m_ApplyActiveColorSpace: 1 m_AllowRoll: 1 + m_FreeformStretching: 0 + m_RotateWithStretchDirection: 1 m_VertexStreams: 00010304 m_Mesh: {fileID: 0} m_Mesh1: {fileID: 0} @@ -5305,6 +5369,7 @@ SpriteRenderer: m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 m_RayTracingMode: 0 + m_RayTraceProcedural: 0 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -5327,7 +5392,7 @@ SpriteRenderer: m_AutoUVMaxAngle: 89 m_LightmapParameters: {fileID: 0} m_SortingLayerID: -525760289 - m_SortingLayer: 0 + m_SortingLayer: -1 m_SortingOrder: 0 m_Sprite: {fileID: 5303822438957532308, guid: 9e11e74bed897ed49ace64317acf73f2, type: 3} @@ -5410,6 +5475,7 @@ SpriteRenderer: m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 m_RayTracingMode: 0 + m_RayTraceProcedural: 0 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -5432,7 +5498,7 @@ SpriteRenderer: m_AutoUVMaxAngle: 89 m_LightmapParameters: {fileID: 0} m_SortingLayerID: -525760289 - m_SortingLayer: 0 + m_SortingLayer: -1 m_SortingOrder: 0 m_Sprite: {fileID: 2375533198695494076, guid: 9e11e74bed897ed49ace64317acf73f2, type: 3} @@ -5545,6 +5611,7 @@ SpriteRenderer: m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 m_RayTracingMode: 0 + m_RayTraceProcedural: 0 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -5567,7 +5634,7 @@ SpriteRenderer: m_AutoUVMaxAngle: 89 m_LightmapParameters: {fileID: 0} m_SortingLayerID: -525760289 - m_SortingLayer: 0 + m_SortingLayer: -1 m_SortingOrder: 0 m_Sprite: {fileID: 9055664747413950379, guid: 9e11e74bed897ed49ace64317acf73f2, type: 3} @@ -5682,6 +5749,7 @@ SpriteRenderer: m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 m_RayTracingMode: 0 + m_RayTraceProcedural: 0 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -5704,7 +5772,7 @@ SpriteRenderer: m_AutoUVMaxAngle: 89 m_LightmapParameters: {fileID: 0} m_SortingLayerID: -525760289 - m_SortingLayer: 0 + m_SortingLayer: -1 m_SortingOrder: 3 m_Sprite: {fileID: 5679725541334812069, guid: 9e11e74bed897ed49ace64317acf73f2, type: 3} @@ -5765,6 +5833,7 @@ SpriteRenderer: m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 m_RayTracingMode: 0 + m_RayTraceProcedural: 0 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -5787,7 +5856,7 @@ SpriteRenderer: m_AutoUVMaxAngle: 89 m_LightmapParameters: {fileID: 0} m_SortingLayerID: -525760289 - m_SortingLayer: 0 + m_SortingLayer: -1 m_SortingOrder: 0 m_Sprite: {fileID: 9003116304047692369, guid: 9e11e74bed897ed49ace64317acf73f2, type: 3} @@ -5869,6 +5938,7 @@ SpriteRenderer: m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 m_RayTracingMode: 0 + m_RayTraceProcedural: 0 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -5891,7 +5961,7 @@ SpriteRenderer: m_AutoUVMaxAngle: 89 m_LightmapParameters: {fileID: 0} m_SortingLayerID: -525760289 - m_SortingLayer: 0 + m_SortingLayer: -1 m_SortingOrder: 0 m_Sprite: {fileID: -4878340244579480210, guid: 9e11e74bed897ed49ace64317acf73f2, type: 3} @@ -6003,6 +6073,7 @@ SpriteRenderer: m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 m_RayTracingMode: 0 + m_RayTraceProcedural: 0 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -6025,7 +6096,7 @@ SpriteRenderer: m_AutoUVMaxAngle: 89 m_LightmapParameters: {fileID: 0} m_SortingLayerID: -525760289 - m_SortingLayer: 0 + m_SortingLayer: -1 m_SortingOrder: 0 m_Sprite: {fileID: -655447010123683641, guid: 9e11e74bed897ed49ace64317acf73f2, type: 3} @@ -6137,6 +6208,7 @@ SpriteRenderer: m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 m_RayTracingMode: 0 + m_RayTraceProcedural: 0 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -6159,7 +6231,7 @@ SpriteRenderer: m_AutoUVMaxAngle: 89 m_LightmapParameters: {fileID: 0} m_SortingLayerID: -525760289 - m_SortingLayer: 0 + m_SortingLayer: -1 m_SortingOrder: 0 m_Sprite: {fileID: 8320075429477689656, guid: 9e11e74bed897ed49ace64317acf73f2, type: 3} @@ -6272,6 +6344,7 @@ SpriteRenderer: m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 m_RayTracingMode: 0 + m_RayTraceProcedural: 0 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -6294,7 +6367,7 @@ SpriteRenderer: m_AutoUVMaxAngle: 89 m_LightmapParameters: {fileID: 0} m_SortingLayerID: -525760289 - m_SortingLayer: 0 + m_SortingLayer: -1 m_SortingOrder: 0 m_Sprite: {fileID: -2275177376659759308, guid: 9e11e74bed897ed49ace64317acf73f2, type: 3} @@ -6441,6 +6514,7 @@ SpriteRenderer: m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 m_RayTracingMode: 0 + m_RayTraceProcedural: 0 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -6463,7 +6537,7 @@ SpriteRenderer: m_AutoUVMaxAngle: 89 m_LightmapParameters: {fileID: 0} m_SortingLayerID: -525760289 - m_SortingLayer: 0 + m_SortingLayer: -1 m_SortingOrder: 0 m_Sprite: {fileID: -2718017732221271195, guid: 9e11e74bed897ed49ace64317acf73f2, type: 3} @@ -6545,6 +6619,7 @@ SpriteRenderer: m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 m_RayTracingMode: 0 + m_RayTraceProcedural: 0 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -6567,7 +6642,7 @@ SpriteRenderer: m_AutoUVMaxAngle: 89 m_LightmapParameters: {fileID: 0} m_SortingLayerID: -525760289 - m_SortingLayer: 0 + m_SortingLayer: -1 m_SortingOrder: 0 m_Sprite: {fileID: -5470089977235641522, guid: 9e11e74bed897ed49ace64317acf73f2, type: 3} @@ -6650,6 +6725,7 @@ SpriteRenderer: m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 m_RayTracingMode: 0 + m_RayTraceProcedural: 0 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -6672,7 +6748,7 @@ SpriteRenderer: m_AutoUVMaxAngle: 89 m_LightmapParameters: {fileID: 0} m_SortingLayerID: -525760289 - m_SortingLayer: 0 + m_SortingLayer: -1 m_SortingOrder: 0 m_Sprite: {fileID: -191062134329367057, guid: 9e11e74bed897ed49ace64317acf73f2, type: 3} @@ -6755,6 +6831,7 @@ SpriteRenderer: m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 m_RayTracingMode: 0 + m_RayTraceProcedural: 0 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -6777,7 +6854,7 @@ SpriteRenderer: m_AutoUVMaxAngle: 89 m_LightmapParameters: {fileID: 0} m_SortingLayerID: -525760289 - m_SortingLayer: 0 + m_SortingLayer: -1 m_SortingOrder: 1 m_Sprite: {fileID: -2294408909874599033, guid: 9e11e74bed897ed49ace64317acf73f2, type: 3} @@ -6851,7 +6928,7 @@ ParticleSystem: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 4470067107435685218} - serializedVersion: 6 + serializedVersion: 7 lengthInSec: 1 simulationSpeed: 1 stopAction: 0 @@ -8995,6 +9072,62 @@ ParticleSystem: m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 + LifetimeByEmitterSpeedModule: + enabled: 0 + m_Curve: + serializedVersion: 2 + minMaxState: 1 + scalar: 1 + minScalar: 1 + maxCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: -0.8 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 0.2 + inSlope: -0.8 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + minCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.33333334 + outWeight: 0.33333334 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + m_Range: {x: 0, y: 1} ForceModule: enabled: 0 x: @@ -10425,19 +10558,20 @@ ParticleSystem: range: {x: 0, y: 1} CollisionModule: enabled: 0 - serializedVersion: 3 + serializedVersion: 4 type: 1 collisionMode: 1 colliderForce: 0 multiplyColliderForceByParticleSize: 0 multiplyColliderForceByParticleSpeed: 0 multiplyColliderForceByCollisionAngle: 1 - plane0: {fileID: 0} - plane1: {fileID: 0} - plane2: {fileID: 0} - plane3: {fileID: 0} - plane4: {fileID: 0} - plane5: {fileID: 0} + m_Planes: + - {fileID: 0} + - {fileID: 0} + - {fileID: 0} + - {fileID: 0} + - {fileID: 0} + - {fileID: 0} m_Dampen: serializedVersion: 2 minMaxState: 0 @@ -10611,17 +10745,20 @@ ParticleSystem: interiorCollisions: 0 TriggerModule: enabled: 0 - collisionShape0: {fileID: 0} - collisionShape1: {fileID: 0} - collisionShape2: {fileID: 0} - collisionShape3: {fileID: 0} - collisionShape4: {fileID: 0} - collisionShape5: {fileID: 0} + serializedVersion: 2 inside: 1 outside: 0 enter: 0 exit: 0 + colliderQueryMode: 0 radiusScale: 1 + primitives: + - {fileID: 0} + - {fileID: 0} + - {fileID: 0} + - {fileID: 0} + - {fileID: 0} + - {fileID: 0} SubModule: serializedVersion: 2 enabled: 0 @@ -11576,11 +11713,11 @@ ParticleSystemRenderer: m_LightProbeUsage: 0 m_ReflectionProbeUsage: 0 m_RayTracingMode: 0 + m_RayTraceProcedural: 0 m_RenderingLayerMask: 4294967295 m_RendererPriority: 0 m_Materials: - {fileID: 2100000, guid: 7edc3e9957c1b4597b1a604bbf4f075e, type: 2} - - {fileID: 2100000, guid: 7edc3e9957c1b4597b1a604bbf4f075e, type: 2} m_StaticBatchInfo: firstSubMesh: 0 subMeshCount: 0 @@ -11599,7 +11736,7 @@ ParticleSystemRenderer: m_AutoUVMaxAngle: 89 m_LightmapParameters: {fileID: 0} m_SortingLayerID: 616639249 - m_SortingLayer: 0 + m_SortingLayer: 2 m_SortingOrder: 1 m_RenderMode: 0 m_SortMode: 0 @@ -11618,6 +11755,8 @@ ParticleSystemRenderer: m_EnableGPUInstancing: 1 m_ApplyActiveColorSpace: 1 m_AllowRoll: 1 + m_FreeformStretching: 0 + m_RotateWithStretchDirection: 1 m_VertexStreams: 00010304 m_Mesh: {fileID: 0} m_Mesh1: {fileID: 0} @@ -11671,6 +11810,7 @@ SpriteRenderer: m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 m_RayTracingMode: 0 + m_RayTraceProcedural: 0 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -11693,7 +11833,7 @@ SpriteRenderer: m_AutoUVMaxAngle: 89 m_LightmapParameters: {fileID: 0} m_SortingLayerID: -525760289 - m_SortingLayer: 0 + m_SortingLayer: -1 m_SortingOrder: 0 m_Sprite: {fileID: 8842639854986407125, guid: 9e11e74bed897ed49ace64317acf73f2, type: 3} @@ -11931,6 +12071,7 @@ SpriteRenderer: m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 m_RayTracingMode: 0 + m_RayTraceProcedural: 0 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -11953,7 +12094,7 @@ SpriteRenderer: m_AutoUVMaxAngle: 89 m_LightmapParameters: {fileID: 0} m_SortingLayerID: -525760289 - m_SortingLayer: 0 + m_SortingLayer: -1 m_SortingOrder: 0 m_Sprite: {fileID: 4450822385668979416, guid: 9e11e74bed897ed49ace64317acf73f2, type: 3} @@ -12193,6 +12334,7 @@ SpriteRenderer: m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 m_RayTracingMode: 0 + m_RayTraceProcedural: 0 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -12215,7 +12357,7 @@ SpriteRenderer: m_AutoUVMaxAngle: 89 m_LightmapParameters: {fileID: 0} m_SortingLayerID: -525760289 - m_SortingLayer: 0 + m_SortingLayer: -1 m_SortingOrder: 1 m_Sprite: {fileID: 8621805756124160267, guid: 9e11e74bed897ed49ace64317acf73f2, type: 3} @@ -12296,6 +12438,7 @@ SpriteRenderer: m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 m_RayTracingMode: 0 + m_RayTraceProcedural: 0 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -12318,7 +12461,7 @@ SpriteRenderer: m_AutoUVMaxAngle: 89 m_LightmapParameters: {fileID: 0} m_SortingLayerID: -525760289 - m_SortingLayer: 0 + m_SortingLayer: -1 m_SortingOrder: 0 m_Sprite: {fileID: -4913308810346072724, guid: 9e11e74bed897ed49ace64317acf73f2, type: 3} @@ -12364,6 +12507,10 @@ PrefabInstance: propertyPath: m_Name value: DeathParticles objectReference: {fileID: 0} + - target: {fileID: 4727661067630430, guid: 9bc2cc5ac55974d43a623715964618e3, type: 3} + propertyPath: m_RootOrder + value: 19 + objectReference: {fileID: 0} - target: {fileID: 4727661067630430, guid: 9bc2cc5ac55974d43a623715964618e3, type: 3} propertyPath: m_LocalPosition.x value: 0.05 @@ -12376,6 +12523,10 @@ PrefabInstance: propertyPath: m_LocalPosition.z value: -0 objectReference: {fileID: 0} + - target: {fileID: 4727661067630430, guid: 9bc2cc5ac55974d43a623715964618e3, type: 3} + propertyPath: m_LocalRotation.w + value: 0.7071068 + objectReference: {fileID: 0} - target: {fileID: 4727661067630430, guid: 9bc2cc5ac55974d43a623715964618e3, type: 3} propertyPath: m_LocalRotation.x value: -0.7071068 @@ -12388,14 +12539,6 @@ PrefabInstance: propertyPath: m_LocalRotation.z value: -0 objectReference: {fileID: 0} - - target: {fileID: 4727661067630430, guid: 9bc2cc5ac55974d43a623715964618e3, type: 3} - propertyPath: m_LocalRotation.w - value: 0.7071068 - objectReference: {fileID: 0} - - target: {fileID: 4727661067630430, guid: 9bc2cc5ac55974d43a623715964618e3, type: 3} - propertyPath: m_RootOrder - value: 19 - objectReference: {fileID: 0} - target: {fileID: 4727661067630430, guid: 9bc2cc5ac55974d43a623715964618e3, type: 3} propertyPath: m_LocalEulerAnglesHint.x value: -90 @@ -12408,6 +12551,11 @@ PrefabInstance: propertyPath: m_LocalEulerAnglesHint.z value: 0 objectReference: {fileID: 0} + - target: {fileID: 199054367867821184, guid: 9bc2cc5ac55974d43a623715964618e3, + type: 3} + propertyPath: m_Materials.Array.size + value: 1 + objectReference: {fileID: 0} m_RemovedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: 9bc2cc5ac55974d43a623715964618e3, type: 3} --- !u!198 &1084583076897638173 stripped diff --git a/Assets/Prefabs/UI/PauseMenu.prefab b/Assets/Prefabs/UI/PauseMenu.prefab index 8c169363..eb418023 100644 --- a/Assets/Prefabs/UI/PauseMenu.prefab +++ b/Assets/Prefabs/UI/PauseMenu.prefab @@ -60,6 +60,7 @@ MonoBehaviour: m_Material: {fileID: 0} m_Color: {r: 1, g: 1, b: 1, a: 0.79607844} m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} m_Maskable: 1 m_OnCullStateChanged: m_PersistentCalls: @@ -85,7 +86,7 @@ GameObject: m_Component: - component: {fileID: 4923770828874524} - component: {fileID: 114224478885330938} - - component: {fileID: 114121103681124250} + - component: {fileID: 7456902891357313435} m_Layer: 0 m_Name: EventSystem m_TagString: Untagged @@ -122,7 +123,7 @@ MonoBehaviour: m_FirstSelected: {fileID: 0} m_sendNavigationEvents: 1 m_DragThreshold: 10 ---- !u!114 &114121103681124250 +--- !u!114 &7456902891357313435 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} @@ -131,16 +132,36 @@ MonoBehaviour: m_GameObject: {fileID: 1420555457428052} m_Enabled: 1 m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 4f231c4fb786f3946a6b90b886c48677, type: 3} + m_Script: {fileID: 11500000, guid: 01614664b831546d2ae94a42149d80ac, type: 3} m_Name: m_EditorClassIdentifier: - m_HorizontalAxis: Horizontal - m_VerticalAxis: Vertical - m_SubmitButton: Submit - m_CancelButton: Cancel - m_InputActionsPerSecond: 10 - m_RepeatDelay: 0.5 - m_ForceModuleActive: 0 + m_MoveRepeatDelay: 0.5 + m_MoveRepeatRate: 0.1 + m_XRTrackingOrigin: {fileID: 0} + m_ActionsAsset: {fileID: -944628639613478452, guid: ca9f5fa95ffab41fb9a615ab714db018, + type: 3} + m_PointAction: {fileID: -1654692200621890270, guid: ca9f5fa95ffab41fb9a615ab714db018, + type: 3} + m_MoveAction: {fileID: -8784545083839296357, guid: ca9f5fa95ffab41fb9a615ab714db018, + type: 3} + m_SubmitAction: {fileID: 392368643174621059, guid: ca9f5fa95ffab41fb9a615ab714db018, + type: 3} + m_CancelAction: {fileID: 7727032971491509709, guid: ca9f5fa95ffab41fb9a615ab714db018, + type: 3} + m_LeftClickAction: {fileID: 3001919216989983466, guid: ca9f5fa95ffab41fb9a615ab714db018, + type: 3} + m_MiddleClickAction: {fileID: -2185481485913320682, guid: ca9f5fa95ffab41fb9a615ab714db018, + type: 3} + m_RightClickAction: {fileID: -4090225696740746782, guid: ca9f5fa95ffab41fb9a615ab714db018, + type: 3} + m_ScrollWheelAction: {fileID: 6240969308177333660, guid: ca9f5fa95ffab41fb9a615ab714db018, + type: 3} + m_TrackedDevicePositionAction: {fileID: 6564999863303420839, guid: ca9f5fa95ffab41fb9a615ab714db018, + type: 3} + m_TrackedDeviceOrientationAction: {fileID: 7970375526676320489, guid: ca9f5fa95ffab41fb9a615ab714db018, + type: 3} + m_DeselectOnBackgroundClick: 1 + m_PointerBehavior: 0 --- !u!1 &1463026909582672 GameObject: m_ObjectHideFlags: 0 @@ -202,6 +223,7 @@ MonoBehaviour: m_Material: {fileID: 0} m_Color: {r: 1, g: 0, b: 0.32941177, a: 1} m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} m_Maskable: 1 m_OnCullStateChanged: m_PersistentCalls: @@ -234,6 +256,7 @@ MonoBehaviour: m_EditorClassIdentifier: m_Navigation: m_Mode: 3 + m_WrapAround: 0 m_SelectOnUp: {fileID: 0} m_SelectOnDown: {fileID: 0} m_SelectOnLeft: {fileID: 0} @@ -264,6 +287,7 @@ MonoBehaviour: m_PersistentCalls: m_Calls: - m_Target: {fileID: 114035738279882206} + m_TargetAssemblyTypeName: m_MethodName: Quit m_Mode: 1 m_Arguments: @@ -335,6 +359,7 @@ MonoBehaviour: 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: @@ -367,6 +392,7 @@ MonoBehaviour: m_EditorClassIdentifier: m_Navigation: m_Mode: 3 + m_WrapAround: 0 m_SelectOnUp: {fileID: 0} m_SelectOnDown: {fileID: 0} m_SelectOnLeft: {fileID: 0} @@ -397,6 +423,7 @@ MonoBehaviour: m_PersistentCalls: m_Calls: - m_Target: {fileID: 114035738279882206} + m_TargetAssemblyTypeName: m_MethodName: RestartLevel m_Mode: 1 m_Arguments: @@ -468,6 +495,7 @@ MonoBehaviour: 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: @@ -500,6 +528,7 @@ MonoBehaviour: m_EditorClassIdentifier: m_Navigation: m_Mode: 3 + m_WrapAround: 0 m_SelectOnUp: {fileID: 0} m_SelectOnDown: {fileID: 0} m_SelectOnLeft: {fileID: 0} @@ -530,6 +559,7 @@ MonoBehaviour: m_PersistentCalls: m_Calls: - m_Target: {fileID: 114035738279882206} + m_TargetAssemblyTypeName: m_MethodName: Unpause m_Mode: 1 m_Arguments: @@ -627,6 +657,7 @@ MonoBehaviour: m_FallbackScreenDPI: 96 m_DefaultSpriteDPI: 96 m_DynamicPixelsPerUnit: 1 + m_PresetInfoIsWorld: 0 --- !u!114 &114344645268642648 MonoBehaviour: m_ObjectHideFlags: 0 diff --git a/Assets/Scenes/DemoLevel.unity b/Assets/Scenes/DemoLevel.unity index a285f3da..f3bf432d 100644 --- a/Assets/Scenes/DemoLevel.unity +++ b/Assets/Scenes/DemoLevel.unity @@ -1699,6 +1699,24 @@ PrefabInstance: objectReference: {fileID: 0} m_RemovedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: 994624b53a6cb63488c33eed0b6ef17a, type: 3} +--- !u!114 &366520121 stripped +MonoBehaviour: + m_CorrespondingSourceObject: {fileID: 647812660725927313, guid: 5a231d6c8a56d42c7829e8707f65eb05, + type: 3} + m_PrefabInstance: {fileID: 4470067106299819798} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 420e96ddfe1ad484ebaaf99004b00fa8, type: 3} + m_Name: + m_EditorClassIdentifier: +--- !u!82 &366520126 stripped +AudioSource: + m_CorrespondingSourceObject: {fileID: 82062164014661386, guid: 5a231d6c8a56d42c7829e8707f65eb05, + type: 3} + m_PrefabInstance: {fileID: 4470067106299819798} + m_PrefabAsset: {fileID: 0} --- !u!1001 &383418778 PrefabInstance: m_ObjectHideFlags: 0 @@ -2552,6 +2570,11 @@ PrefabInstance: propertyPath: amount value: 10 objectReference: {fileID: 0} + - target: {fileID: 199317658961252212, guid: eafa658dc579340ccb74ef473f37b5dd, + type: 3} + propertyPath: m_Materials.Array.size + value: 1 + objectReference: {fileID: 0} m_RemovedComponents: - {fileID: 95803312548059516, guid: eafa658dc579340ccb74ef473f37b5dd, type: 3} m_SourcePrefab: {fileID: 100100000, guid: eafa658dc579340ccb74ef473f37b5dd, type: 3} @@ -3083,6 +3106,11 @@ PrefabInstance: propertyPath: m_Mesh value: objectReference: {fileID: 0} + - target: {fileID: 199317658961252212, guid: eafa658dc579340ccb74ef473f37b5dd, + type: 3} + propertyPath: m_Materials.Array.size + value: 1 + objectReference: {fileID: 0} m_RemovedComponents: - {fileID: 95803312548059516, guid: eafa658dc579340ccb74ef473f37b5dd, type: 3} m_SourcePrefab: {fileID: 100100000, guid: eafa658dc579340ccb74ef473f37b5dd, type: 3} @@ -3916,6 +3944,18 @@ PrefabInstance: objectReference: {fileID: 0} m_RemovedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: 0f618da174ea44266865b50a04995f3c, type: 3} +--- !u!114 &1060343246 stripped +MonoBehaviour: + m_CorrespondingSourceObject: {fileID: 114545493876079580, guid: 927e473a2ba484d75b382fc1faaf0eeb, + type: 3} + m_PrefabInstance: {fileID: 7018260866872453974} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 303d86b7c63d6433795d7b39d81a2e63, type: 3} + m_Name: + m_EditorClassIdentifier: --- !u!1001 &1065857932 PrefabInstance: m_ObjectHideFlags: 0 @@ -4112,6 +4152,11 @@ PrefabInstance: propertyPath: m_Mesh value: objectReference: {fileID: 0} + - target: {fileID: 199317658961252212, guid: eafa658dc579340ccb74ef473f37b5dd, + type: 3} + propertyPath: m_Materials.Array.size + value: 1 + objectReference: {fileID: 0} m_RemovedComponents: - {fileID: 95803312548059516, guid: eafa658dc579340ccb74ef473f37b5dd, type: 3} m_SourcePrefab: {fileID: 100100000, guid: eafa658dc579340ccb74ef473f37b5dd, type: 3} @@ -5222,6 +5267,11 @@ PrefabInstance: propertyPath: m_Mesh value: objectReference: {fileID: 0} + - target: {fileID: 199317658961252212, guid: eafa658dc579340ccb74ef473f37b5dd, + type: 3} + propertyPath: m_Materials.Array.size + value: 1 + objectReference: {fileID: 0} m_RemovedComponents: - {fileID: 95803312548059516, guid: eafa658dc579340ccb74ef473f37b5dd, type: 3} m_SourcePrefab: {fileID: 100100000, guid: eafa658dc579340ccb74ef473f37b5dd, type: 3} @@ -5341,7 +5391,8 @@ PrefabInstance: propertyPath: m_LocalEulerAnglesHint.z value: 0 objectReference: {fileID: 0} - m_RemovedComponents: [] + m_RemovedComponents: + - {fileID: 114121103681124250, guid: ffc9cd11fa4bd42479840f0e559bfc58, type: 3} m_SourcePrefab: {fileID: 100100000, guid: ffc9cd11fa4bd42479840f0e559bfc58, type: 3} --- !u!1001 &1407178704 PrefabInstance: @@ -7235,6 +7286,51 @@ PrefabInstance: objectReference: {fileID: 0} m_RemovedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: ce1bbe003f390412a80f34448b33c93c, type: 3} +--- !u!1 &1888479922 stripped +GameObject: + m_CorrespondingSourceObject: {fileID: 1420555457428052, guid: ffc9cd11fa4bd42479840f0e559bfc58, + type: 3} + m_PrefabInstance: {fileID: 1404970985} + m_PrefabAsset: {fileID: 0} +--- !u!114 &1888479923 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1888479922} + 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_XRTrackingOrigin: {fileID: 0} + m_ActionsAsset: {fileID: -944628639613478452, guid: ca9f5fa95ffab41fb9a615ab714db018, + type: 3} + m_PointAction: {fileID: -1654692200621890270, guid: ca9f5fa95ffab41fb9a615ab714db018, + type: 3} + m_MoveAction: {fileID: -8784545083839296357, guid: ca9f5fa95ffab41fb9a615ab714db018, + type: 3} + m_SubmitAction: {fileID: 392368643174621059, guid: ca9f5fa95ffab41fb9a615ab714db018, + type: 3} + m_CancelAction: {fileID: 7727032971491509709, guid: ca9f5fa95ffab41fb9a615ab714db018, + type: 3} + m_LeftClickAction: {fileID: 3001919216989983466, guid: ca9f5fa95ffab41fb9a615ab714db018, + type: 3} + m_MiddleClickAction: {fileID: -2185481485913320682, guid: ca9f5fa95ffab41fb9a615ab714db018, + type: 3} + m_RightClickAction: {fileID: -4090225696740746782, guid: ca9f5fa95ffab41fb9a615ab714db018, + type: 3} + m_ScrollWheelAction: {fileID: 6240969308177333660, guid: ca9f5fa95ffab41fb9a615ab714db018, + type: 3} + m_TrackedDevicePositionAction: {fileID: 6564999863303420839, guid: ca9f5fa95ffab41fb9a615ab714db018, + type: 3} + m_TrackedDeviceOrientationAction: {fileID: 7970375526676320489, guid: ca9f5fa95ffab41fb9a615ab714db018, + type: 3} + m_DeselectOnBackgroundClick: 1 + m_PointerBehavior: 0 --- !u!1001 &1905179071 PrefabInstance: m_ObjectHideFlags: 0 @@ -8934,6 +9030,21 @@ PrefabInstance: propertyPath: pauseMenu value: objectReference: {fileID: 1844477748} + - target: {fileID: 114355383212365724, guid: 5a231d6c8a56d42c7829e8707f65eb05, + type: 3} + propertyPath: cameraEffects + value: + objectReference: {fileID: 1060343246} + - target: {fileID: 114355383212365724, guid: 5a231d6c8a56d42c7829e8707f65eb05, + type: 3} + propertyPath: recoveryCounter + value: + objectReference: {fileID: 366520121} + - target: {fileID: 114355383212365724, guid: 5a231d6c8a56d42c7829e8707f65eb05, + type: 3} + propertyPath: flameParticlesAudioSource + value: + objectReference: {fileID: 366520126} - target: {fileID: 199276761053638502, guid: 5a231d6c8a56d42c7829e8707f65eb05, type: 3} propertyPath: m_Materials.Array.size @@ -9040,6 +9151,11 @@ PrefabInstance: propertyPath: m_Follow value: objectReference: {fileID: 5809405050015905993} + - target: {fileID: 114843163458573616, guid: 927e473a2ba484d75b382fc1faaf0eeb, + type: 3} + propertyPath: m_FrequencyGain + value: 0 + objectReference: {fileID: 0} m_RemovedComponents: - {fileID: 1979371213, guid: 927e473a2ba484d75b382fc1faaf0eeb, type: 3} - {fileID: 1979371212, guid: 927e473a2ba484d75b382fc1faaf0eeb, type: 3} diff --git a/Assets/Scripts/Characters/PhysicsObject.cs b/Assets/Scripts/Characters/PhysicsObject.cs index b2a928ca..04a49b81 100644 --- a/Assets/Scripts/Characters/PhysicsObject.cs +++ b/Assets/Scripts/Characters/PhysicsObject.cs @@ -13,7 +13,7 @@ public class PhysicsObject : MonoBehaviour [System.NonSerialized] public Vector2 targetVelocity; [System.NonSerialized] public bool grounded; [System.NonSerialized] protected Vector2 groundNormal; - protected Rigidbody2D rb2d; + [SerializeField] private Rigidbody2D rb2d; //Changed to private since I have no idea why it was bugging out protected [System.NonSerialized] public Vector2 velocity; [SerializeField] protected ContactFilter2D contactFilter; [SerializeField] protected RaycastHit2D[] hitBuffer = new RaycastHit2D[16]; @@ -21,11 +21,6 @@ public class PhysicsObject : MonoBehaviour protected const float minMoveDistance = 0.001f; protected const float shellRadius = 0.01f; - void OnEnable() - { - rb2d = GetComponent(); - } - void Start() { contactFilter.useTriggers = false; diff --git a/Assets/Scripts/Core/DialogueBoxController.cs b/Assets/Scripts/Core/DialogueBoxController.cs index 76536e72..d88a5b16 100644 --- a/Assets/Scripts/Core/DialogueBoxController.cs +++ b/Assets/Scripts/Core/DialogueBoxController.cs @@ -2,6 +2,7 @@ using System.Collections.Generic; using UnityEngine; using TMPro; +using UnityEngine.InputSystem; /*Controls the dialogue box and it's communication with Dialogue.cs, which contains the character dialogue*/ @@ -46,6 +47,46 @@ public class DialogueBoxController : MonoBehaviour private bool horizontalKeyIsDown = true; private bool submitKeyIsDown = true; private bool typing = true; + [SerializeField] private bool interactHeld; + [SerializeField] private bool jumpHeld; + + private Controls controls; + + private void Awake() => controls = new Controls(); + + private void OnEnable() { + controls.Enable(); + + controls.Player.Interact.started += Interact; + controls.Player.Interact.canceled += Interact; + + controls.Player.Jump.started += Jump; + controls.Player.Jump.canceled += Jump; + } + + private void OnDisable() { + controls.Disable(); + + controls.Player.Interact.started -= Interact; + controls.Player.Interact.canceled -= Interact; + + controls.Player.Jump.started -= Jump; + controls.Player.Jump.canceled -= Jump; + } + + private void Interact(InputAction.CallbackContext ctx) { + if(ctx.started) + interactHeld = true; + else if(ctx.canceled) + interactHeld = false; + } + + private void Jump(InputAction.CallbackContext ctx) { + if(ctx.started) + jumpHeld = true; + else if(ctx.canceled) + jumpHeld = false; + } // Update is called once per frame void Update() @@ -54,7 +95,7 @@ void Update() { //Submit //Check for key press - if (((Input.GetAxis("Submit") > 0) || (Input.GetAxis("Jump") > 0)) && !submitKeyIsDown) + if ((interactHeld || jumpHeld) && !submitKeyIsDown) { submitKeyIsDown = true; if (!typing) @@ -78,21 +119,25 @@ void Update() } //Check for first release to ensure we can't spam - if (submitKeyIsDown && Input.GetAxis("Submit") < .001 && Input.GetAxis("Jump") < .001) + if (submitKeyIsDown) { - if (!typing) + if(interactHeld || jumpHeld) { - submitKeyIsDown = false; - if (index == 0) + if (!typing) { - ableToAdvance = true; + submitKeyIsDown = false; + if (index == 0) + { + ableToAdvance = true; + } } } + } //Choices //Check for key press - if ((Input.GetAxis("Horizontal") != 0) && !horizontalKeyIsDown && animator.GetBool("hasChoices") == true) + if ((controls.Player.Direction.ReadValue().x != 0) && !horizontalKeyIsDown && animator.GetBool("hasChoices") == true) { if (animator.GetInteger("choiceSelection") == 1) { @@ -109,7 +154,7 @@ void Update() } //Check for first release to ensure we can't spam - if (horizontalKeyIsDown && Input.GetAxis("Horizontal") == 0) + if (horizontalKeyIsDown && controls.Player.Direction.ReadValue().x == 0) { horizontalKeyIsDown = false; } diff --git a/Assets/Scripts/Core/Inputsystem.meta b/Assets/Scripts/Core/Inputsystem.meta new file mode 100644 index 00000000..780e802a --- /dev/null +++ b/Assets/Scripts/Core/Inputsystem.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 383b98f2d7009d14aa57c26ba6e4f106 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/Core/Inputsystem/Controls.cs b/Assets/Scripts/Core/Inputsystem/Controls.cs new file mode 100644 index 00000000..a9696e96 --- /dev/null +++ b/Assets/Scripts/Core/Inputsystem/Controls.cs @@ -0,0 +1,465 @@ +//------------------------------------------------------------------------------ +// +// This code was auto-generated by com.unity.inputsystem:InputActionCodeGenerator +// version 1.3.0 +// from Assets/Scripts/Core/Inputsystem/Controls.inputactions +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections; +using System.Collections.Generic; +using UnityEngine.InputSystem; +using UnityEngine.InputSystem.Utilities; + +public partial class @Controls : IInputActionCollection2, IDisposable +{ + public InputActionAsset asset { get; } + public @Controls() + { + asset = InputActionAsset.FromJson(@"{ + ""name"": ""Controls"", + ""maps"": [ + { + ""name"": ""Player"", + ""id"": ""e7eb1ccf-1b52-4e8b-8690-d773bf81af7c"", + ""actions"": [ + { + ""name"": ""Jump"", + ""type"": ""Button"", + ""id"": ""d1254492-6866-49e0-b3a8-c2336833f8aa"", + ""expectedControlType"": ""Button"", + ""processors"": """", + ""interactions"": """", + ""initialStateCheck"": false + }, + { + ""name"": ""RMB"", + ""type"": ""Button"", + ""id"": ""662f1835-ac69-4744-a14d-338747256f64"", + ""expectedControlType"": ""Button"", + ""processors"": """", + ""interactions"": """", + ""initialStateCheck"": false + }, + { + ""name"": ""LMB"", + ""type"": ""Button"", + ""id"": ""65f5cec4-08b9-4913-9b5f-d2d528333a53"", + ""expectedControlType"": ""Button"", + ""processors"": """", + ""interactions"": """", + ""initialStateCheck"": false + }, + { + ""name"": ""Direction"", + ""type"": ""Value"", + ""id"": ""d4541240-f0a7-467a-b8ba-d392096afa44"", + ""expectedControlType"": ""Vector2"", + ""processors"": """", + ""interactions"": """", + ""initialStateCheck"": true + }, + { + ""name"": ""Interact"", + ""type"": ""Button"", + ""id"": ""044c8576-806a-4b7c-bb50-690ae565b097"", + ""expectedControlType"": ""Button"", + ""processors"": """", + ""interactions"": """", + ""initialStateCheck"": false + } + ], + ""bindings"": [ + { + ""name"": """", + ""id"": ""419970eb-b53f-4f41-8352-e6a6995ecc87"", + ""path"": ""/leftButton"", + ""interactions"": """", + ""processors"": """", + ""groups"": ""Mouse & Keyboard"", + ""action"": ""LMB"", + ""isComposite"": false, + ""isPartOfComposite"": false + }, + { + ""name"": ""2D Vector"", + ""id"": ""cd502eab-8569-4f88-94f3-6285fe096ea2"", + ""path"": ""2DVector"", + ""interactions"": """", + ""processors"": """", + ""groups"": """", + ""action"": ""Direction"", + ""isComposite"": true, + ""isPartOfComposite"": false + }, + { + ""name"": ""up"", + ""id"": ""281749d3-311b-437e-a64b-1af9948a2d16"", + ""path"": ""/w"", + ""interactions"": """", + ""processors"": """", + ""groups"": ""Mouse & Keyboard"", + ""action"": ""Direction"", + ""isComposite"": false, + ""isPartOfComposite"": true + }, + { + ""name"": ""up"", + ""id"": ""d24b454a-e949-465f-bed1-6daff4a5ee40"", + ""path"": ""/upArrow"", + ""interactions"": """", + ""processors"": """", + ""groups"": ""Mouse & Keyboard"", + ""action"": ""Direction"", + ""isComposite"": false, + ""isPartOfComposite"": true + }, + { + ""name"": ""down"", + ""id"": ""92d606af-525c-4810-b08e-737ba98da7ce"", + ""path"": ""/s"", + ""interactions"": """", + ""processors"": """", + ""groups"": ""Mouse & Keyboard"", + ""action"": ""Direction"", + ""isComposite"": false, + ""isPartOfComposite"": true + }, + { + ""name"": ""down"", + ""id"": ""25ee55bc-f8d7-4c19-a0c7-1d26646e6fd3"", + ""path"": ""/downArrow"", + ""interactions"": """", + ""processors"": """", + ""groups"": ""Mouse & Keyboard"", + ""action"": ""Direction"", + ""isComposite"": false, + ""isPartOfComposite"": true + }, + { + ""name"": ""left"", + ""id"": ""11c21fba-380d-48c3-812c-bd8926c7262c"", + ""path"": ""/a"", + ""interactions"": """", + ""processors"": """", + ""groups"": ""Mouse & Keyboard"", + ""action"": ""Direction"", + ""isComposite"": false, + ""isPartOfComposite"": true + }, + { + ""name"": ""left"", + ""id"": ""641f8bad-419c-4a72-a6e5-9a14cc6474ed"", + ""path"": ""/leftArrow"", + ""interactions"": """", + ""processors"": """", + ""groups"": ""Mouse & Keyboard"", + ""action"": ""Direction"", + ""isComposite"": false, + ""isPartOfComposite"": true + }, + { + ""name"": ""right"", + ""id"": ""7c99bf54-1841-4fc3-8572-e98823dfbe2f"", + ""path"": ""/d"", + ""interactions"": """", + ""processors"": """", + ""groups"": ""Mouse & Keyboard"", + ""action"": ""Direction"", + ""isComposite"": false, + ""isPartOfComposite"": true + }, + { + ""name"": ""right"", + ""id"": ""bb5326a1-1ac2-4b5f-bd77-624da98591b0"", + ""path"": ""/rightArrow"", + ""interactions"": """", + ""processors"": """", + ""groups"": ""Mouse & Keyboard"", + ""action"": ""Direction"", + ""isComposite"": false, + ""isPartOfComposite"": true + }, + { + ""name"": """", + ""id"": ""0850c619-5431-4632-bad4-3a3406384f15"", + ""path"": ""/rightButton"", + ""interactions"": """", + ""processors"": """", + ""groups"": ""Mouse & Keyboard"", + ""action"": ""RMB"", + ""isComposite"": false, + ""isPartOfComposite"": false + }, + { + ""name"": """", + ""id"": ""90fb4b13-ce78-4f57-9f72-fc34b0dbad67"", + ""path"": ""/e"", + ""interactions"": """", + ""processors"": """", + ""groups"": ""Mouse & Keyboard"", + ""action"": ""Interact"", + ""isComposite"": false, + ""isPartOfComposite"": false + }, + { + ""name"": """", + ""id"": ""4a40f388-a519-464d-976e-a2b57a6b08db"", + ""path"": ""/enter"", + ""interactions"": """", + ""processors"": """", + ""groups"": ""Mouse & Keyboard"", + ""action"": ""Interact"", + ""isComposite"": false, + ""isPartOfComposite"": false + }, + { + ""name"": """", + ""id"": ""27b93944-34f4-4b49-a758-70144b69f7db"", + ""path"": ""/space"", + ""interactions"": """", + ""processors"": """", + ""groups"": ""Mouse & Keyboard"", + ""action"": ""Jump"", + ""isComposite"": false, + ""isPartOfComposite"": false + } + ] + }, + { + ""name"": ""UI"", + ""id"": ""93e413cf-599b-4c90-9ec0-9831b92d355f"", + ""actions"": [ + { + ""name"": ""Escape"", + ""type"": ""Button"", + ""id"": ""6a6cc44e-32d4-45ea-afa2-0a58d1572abd"", + ""expectedControlType"": ""Button"", + ""processors"": """", + ""interactions"": """", + ""initialStateCheck"": false + } + ], + ""bindings"": [ + { + ""name"": """", + ""id"": ""c3f6cebc-a1e8-48d0-a717-a34eeaf55cf4"", + ""path"": ""/escape"", + ""interactions"": """", + ""processors"": """", + ""groups"": ""Mouse & Keyboard"", + ""action"": ""Escape"", + ""isComposite"": false, + ""isPartOfComposite"": false + } + ] + } + ], + ""controlSchemes"": [ + { + ""name"": ""Mouse & Keyboard"", + ""bindingGroup"": ""Mouse & Keyboard"", + ""devices"": [ + { + ""devicePath"": """", + ""isOptional"": false, + ""isOR"": false + }, + { + ""devicePath"": """", + ""isOptional"": false, + ""isOR"": false + } + ] + } + ] +}"); + // Player + m_Player = asset.FindActionMap("Player", throwIfNotFound: true); + m_Player_Jump = m_Player.FindAction("Jump", throwIfNotFound: true); + m_Player_RMB = m_Player.FindAction("RMB", throwIfNotFound: true); + m_Player_LMB = m_Player.FindAction("LMB", throwIfNotFound: true); + m_Player_Direction = m_Player.FindAction("Direction", throwIfNotFound: true); + m_Player_Interact = m_Player.FindAction("Interact", throwIfNotFound: true); + // UI + m_UI = asset.FindActionMap("UI", throwIfNotFound: true); + m_UI_Escape = m_UI.FindAction("Escape", throwIfNotFound: true); + } + + public void Dispose() + { + UnityEngine.Object.Destroy(asset); + } + + public InputBinding? bindingMask + { + get => asset.bindingMask; + set => asset.bindingMask = value; + } + + public ReadOnlyArray? devices + { + get => asset.devices; + set => asset.devices = value; + } + + public ReadOnlyArray controlSchemes => asset.controlSchemes; + + public bool Contains(InputAction action) + { + return asset.Contains(action); + } + + public IEnumerator GetEnumerator() + { + return asset.GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Enable() + { + asset.Enable(); + } + + public void Disable() + { + asset.Disable(); + } + public IEnumerable bindings => asset.bindings; + + public InputAction FindAction(string actionNameOrId, bool throwIfNotFound = false) + { + return asset.FindAction(actionNameOrId, throwIfNotFound); + } + public int FindBinding(InputBinding bindingMask, out InputAction action) + { + return asset.FindBinding(bindingMask, out action); + } + + // Player + private readonly InputActionMap m_Player; + private IPlayerActions m_PlayerActionsCallbackInterface; + private readonly InputAction m_Player_Jump; + private readonly InputAction m_Player_RMB; + private readonly InputAction m_Player_LMB; + private readonly InputAction m_Player_Direction; + private readonly InputAction m_Player_Interact; + public struct PlayerActions + { + private @Controls m_Wrapper; + public PlayerActions(@Controls wrapper) { m_Wrapper = wrapper; } + public InputAction @Jump => m_Wrapper.m_Player_Jump; + public InputAction @RMB => m_Wrapper.m_Player_RMB; + public InputAction @LMB => m_Wrapper.m_Player_LMB; + public InputAction @Direction => m_Wrapper.m_Player_Direction; + public InputAction @Interact => m_Wrapper.m_Player_Interact; + public InputActionMap Get() { return m_Wrapper.m_Player; } + public void Enable() { Get().Enable(); } + public void Disable() { Get().Disable(); } + public bool enabled => Get().enabled; + public static implicit operator InputActionMap(PlayerActions set) { return set.Get(); } + public void SetCallbacks(IPlayerActions instance) + { + if (m_Wrapper.m_PlayerActionsCallbackInterface != null) + { + @Jump.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnJump; + @Jump.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnJump; + @Jump.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnJump; + @RMB.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnRMB; + @RMB.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnRMB; + @RMB.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnRMB; + @LMB.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnLMB; + @LMB.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnLMB; + @LMB.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnLMB; + @Direction.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnDirection; + @Direction.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnDirection; + @Direction.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnDirection; + @Interact.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnInteract; + @Interact.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnInteract; + @Interact.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnInteract; + } + m_Wrapper.m_PlayerActionsCallbackInterface = instance; + if (instance != null) + { + @Jump.started += instance.OnJump; + @Jump.performed += instance.OnJump; + @Jump.canceled += instance.OnJump; + @RMB.started += instance.OnRMB; + @RMB.performed += instance.OnRMB; + @RMB.canceled += instance.OnRMB; + @LMB.started += instance.OnLMB; + @LMB.performed += instance.OnLMB; + @LMB.canceled += instance.OnLMB; + @Direction.started += instance.OnDirection; + @Direction.performed += instance.OnDirection; + @Direction.canceled += instance.OnDirection; + @Interact.started += instance.OnInteract; + @Interact.performed += instance.OnInteract; + @Interact.canceled += instance.OnInteract; + } + } + } + public PlayerActions @Player => new PlayerActions(this); + + // UI + private readonly InputActionMap m_UI; + private IUIActions m_UIActionsCallbackInterface; + private readonly InputAction m_UI_Escape; + public struct UIActions + { + private @Controls m_Wrapper; + public UIActions(@Controls wrapper) { m_Wrapper = wrapper; } + public InputAction @Escape => m_Wrapper.m_UI_Escape; + public InputActionMap Get() { return m_Wrapper.m_UI; } + public void Enable() { Get().Enable(); } + public void Disable() { Get().Disable(); } + public bool enabled => Get().enabled; + public static implicit operator InputActionMap(UIActions set) { return set.Get(); } + public void SetCallbacks(IUIActions instance) + { + if (m_Wrapper.m_UIActionsCallbackInterface != null) + { + @Escape.started -= m_Wrapper.m_UIActionsCallbackInterface.OnEscape; + @Escape.performed -= m_Wrapper.m_UIActionsCallbackInterface.OnEscape; + @Escape.canceled -= m_Wrapper.m_UIActionsCallbackInterface.OnEscape; + } + m_Wrapper.m_UIActionsCallbackInterface = instance; + if (instance != null) + { + @Escape.started += instance.OnEscape; + @Escape.performed += instance.OnEscape; + @Escape.canceled += instance.OnEscape; + } + } + } + public UIActions @UI => new UIActions(this); + private int m_MouseKeyboardSchemeIndex = -1; + public InputControlScheme MouseKeyboardScheme + { + get + { + if (m_MouseKeyboardSchemeIndex == -1) m_MouseKeyboardSchemeIndex = asset.FindControlSchemeIndex("Mouse & Keyboard"); + return asset.controlSchemes[m_MouseKeyboardSchemeIndex]; + } + } + public interface IPlayerActions + { + void OnJump(InputAction.CallbackContext context); + void OnRMB(InputAction.CallbackContext context); + void OnLMB(InputAction.CallbackContext context); + void OnDirection(InputAction.CallbackContext context); + void OnInteract(InputAction.CallbackContext context); + } + public interface IUIActions + { + void OnEscape(InputAction.CallbackContext context); + } +} diff --git a/Assets/Scripts/Core/Inputsystem/Controls.cs.meta b/Assets/Scripts/Core/Inputsystem/Controls.cs.meta new file mode 100644 index 00000000..d64910fa --- /dev/null +++ b/Assets/Scripts/Core/Inputsystem/Controls.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: fa6b945d001be4840bb2f5d77bd347db +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/Core/Inputsystem/Controls.inputactions b/Assets/Scripts/Core/Inputsystem/Controls.inputactions new file mode 100644 index 00000000..04604e24 --- /dev/null +++ b/Assets/Scripts/Core/Inputsystem/Controls.inputactions @@ -0,0 +1,258 @@ +{ + "name": "Controls", + "maps": [ + { + "name": "Player", + "id": "e7eb1ccf-1b52-4e8b-8690-d773bf81af7c", + "actions": [ + { + "name": "Jump", + "type": "Button", + "id": "d1254492-6866-49e0-b3a8-c2336833f8aa", + "expectedControlType": "Button", + "processors": "", + "interactions": "", + "initialStateCheck": false + }, + { + "name": "RMB", + "type": "Button", + "id": "662f1835-ac69-4744-a14d-338747256f64", + "expectedControlType": "Button", + "processors": "", + "interactions": "", + "initialStateCheck": false + }, + { + "name": "LMB", + "type": "Button", + "id": "65f5cec4-08b9-4913-9b5f-d2d528333a53", + "expectedControlType": "Button", + "processors": "", + "interactions": "", + "initialStateCheck": false + }, + { + "name": "Direction", + "type": "Value", + "id": "d4541240-f0a7-467a-b8ba-d392096afa44", + "expectedControlType": "Vector2", + "processors": "", + "interactions": "", + "initialStateCheck": true + }, + { + "name": "Interact", + "type": "Button", + "id": "044c8576-806a-4b7c-bb50-690ae565b097", + "expectedControlType": "Button", + "processors": "", + "interactions": "", + "initialStateCheck": false + } + ], + "bindings": [ + { + "name": "", + "id": "419970eb-b53f-4f41-8352-e6a6995ecc87", + "path": "/leftButton", + "interactions": "", + "processors": "", + "groups": "Mouse & Keyboard", + "action": "LMB", + "isComposite": false, + "isPartOfComposite": false + }, + { + "name": "2D Vector", + "id": "cd502eab-8569-4f88-94f3-6285fe096ea2", + "path": "2DVector", + "interactions": "", + "processors": "", + "groups": "", + "action": "Direction", + "isComposite": true, + "isPartOfComposite": false + }, + { + "name": "up", + "id": "281749d3-311b-437e-a64b-1af9948a2d16", + "path": "/w", + "interactions": "", + "processors": "", + "groups": "Mouse & Keyboard", + "action": "Direction", + "isComposite": false, + "isPartOfComposite": true + }, + { + "name": "up", + "id": "d24b454a-e949-465f-bed1-6daff4a5ee40", + "path": "/upArrow", + "interactions": "", + "processors": "", + "groups": "Mouse & Keyboard", + "action": "Direction", + "isComposite": false, + "isPartOfComposite": true + }, + { + "name": "down", + "id": "92d606af-525c-4810-b08e-737ba98da7ce", + "path": "/s", + "interactions": "", + "processors": "", + "groups": "Mouse & Keyboard", + "action": "Direction", + "isComposite": false, + "isPartOfComposite": true + }, + { + "name": "down", + "id": "25ee55bc-f8d7-4c19-a0c7-1d26646e6fd3", + "path": "/downArrow", + "interactions": "", + "processors": "", + "groups": "Mouse & Keyboard", + "action": "Direction", + "isComposite": false, + "isPartOfComposite": true + }, + { + "name": "left", + "id": "11c21fba-380d-48c3-812c-bd8926c7262c", + "path": "/a", + "interactions": "", + "processors": "", + "groups": "Mouse & Keyboard", + "action": "Direction", + "isComposite": false, + "isPartOfComposite": true + }, + { + "name": "left", + "id": "641f8bad-419c-4a72-a6e5-9a14cc6474ed", + "path": "/leftArrow", + "interactions": "", + "processors": "", + "groups": "Mouse & Keyboard", + "action": "Direction", + "isComposite": false, + "isPartOfComposite": true + }, + { + "name": "right", + "id": "7c99bf54-1841-4fc3-8572-e98823dfbe2f", + "path": "/d", + "interactions": "", + "processors": "", + "groups": "Mouse & Keyboard", + "action": "Direction", + "isComposite": false, + "isPartOfComposite": true + }, + { + "name": "right", + "id": "bb5326a1-1ac2-4b5f-bd77-624da98591b0", + "path": "/rightArrow", + "interactions": "", + "processors": "", + "groups": "Mouse & Keyboard", + "action": "Direction", + "isComposite": false, + "isPartOfComposite": true + }, + { + "name": "", + "id": "0850c619-5431-4632-bad4-3a3406384f15", + "path": "/rightButton", + "interactions": "", + "processors": "", + "groups": "Mouse & Keyboard", + "action": "RMB", + "isComposite": false, + "isPartOfComposite": false + }, + { + "name": "", + "id": "90fb4b13-ce78-4f57-9f72-fc34b0dbad67", + "path": "/e", + "interactions": "", + "processors": "", + "groups": "Mouse & Keyboard", + "action": "Interact", + "isComposite": false, + "isPartOfComposite": false + }, + { + "name": "", + "id": "4a40f388-a519-464d-976e-a2b57a6b08db", + "path": "/enter", + "interactions": "", + "processors": "", + "groups": "Mouse & Keyboard", + "action": "Interact", + "isComposite": false, + "isPartOfComposite": false + }, + { + "name": "", + "id": "27b93944-34f4-4b49-a758-70144b69f7db", + "path": "/space", + "interactions": "", + "processors": "", + "groups": "Mouse & Keyboard", + "action": "Jump", + "isComposite": false, + "isPartOfComposite": false + } + ] + }, + { + "name": "UI", + "id": "93e413cf-599b-4c90-9ec0-9831b92d355f", + "actions": [ + { + "name": "Escape", + "type": "Button", + "id": "6a6cc44e-32d4-45ea-afa2-0a58d1572abd", + "expectedControlType": "Button", + "processors": "", + "interactions": "", + "initialStateCheck": false + } + ], + "bindings": [ + { + "name": "", + "id": "c3f6cebc-a1e8-48d0-a717-a34eeaf55cf4", + "path": "/escape", + "interactions": "", + "processors": "", + "groups": "Mouse & Keyboard", + "action": "Escape", + "isComposite": false, + "isPartOfComposite": false + } + ] + } + ], + "controlSchemes": [ + { + "name": "Mouse & Keyboard", + "bindingGroup": "Mouse & Keyboard", + "devices": [ + { + "devicePath": "", + "isOptional": false, + "isOR": false + }, + { + "devicePath": "", + "isOptional": false, + "isOR": false + } + ] + } + ] +} \ No newline at end of file diff --git a/Assets/Scripts/Core/Inputsystem/Controls.inputactions.meta b/Assets/Scripts/Core/Inputsystem/Controls.inputactions.meta new file mode 100644 index 00000000..074c7289 --- /dev/null +++ b/Assets/Scripts/Core/Inputsystem/Controls.inputactions.meta @@ -0,0 +1,14 @@ +fileFormatVersion: 2 +guid: 47884e88651a2ed4cbd5267f6cdb48b5 +ScriptedImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 2 + userData: + assetBundleName: + assetBundleVariant: + script: {fileID: 11500000, guid: 8404be70184654265930450def6a9037, type: 3} + generateWrapperCode: 1 + wrapperCodePath: + wrapperClassName: + wrapperCodeNamespace: diff --git a/Assets/Scripts/Core/NewPlayer.cs b/Assets/Scripts/Core/NewPlayer.cs index e5aaae16..a097bfe3 100644 --- a/Assets/Scripts/Core/NewPlayer.cs +++ b/Assets/Scripts/Core/NewPlayer.cs @@ -2,6 +2,7 @@ using System.Collections.Generic; using UnityEngine; using UnityEngine.SceneManagement; +using UnityEngine.InputSystem; /*Adds player functionality to a physics object*/ @@ -23,6 +24,7 @@ public class NewPlayer : PhysicsObject [SerializeField] private ParticleSystem jumpParticles; [SerializeField] private GameObject pauseMenu; public RecoveryCounter recoveryCounter; + private Controls controls; // Singleton instantiation private static NewPlayer instance; @@ -53,7 +55,9 @@ public static NewPlayer Instance [System.NonSerialized] public bool pounded; [System.NonSerialized] public bool pounding; [System.NonSerialized] public bool shooting = false; - + [SerializeField] private bool lmbHeld; + [SerializeField] private bool rmbHeld; + [Header ("Inventory")] public float ammo; public int coins; @@ -77,6 +81,34 @@ public static NewPlayer Instance public AudioClip stepSound; [System.NonSerialized] public int whichHurtSound; + private void Awake() => controls = new Controls(); + + private void OnEnable() { + controls.Enable(); + + controls.Player.LMB.started += OnLeftClick; + controls.Player.LMB.canceled += OnLeftClick; + + controls.Player.RMB.started += OnRightClick; + controls.Player.RMB.canceled += OnRightClick; + + controls.UI.Escape.performed += _ => PauseGame(); + controls.Player.Jump.performed += _ => Jump(1f); + } + + private void OnDisable() { + controls.Disable(); + + controls.Player.LMB.started -= OnLeftClick; + controls.Player.LMB.canceled -= OnLeftClick; + + controls.Player.RMB.started -= OnRightClick; + controls.Player.RMB.canceled -= OnRightClick; + + controls.UI.Escape.performed -= _ => PauseGame(); + controls.Player.Jump.performed -= _ => Jump(0f); + } + void Start() { Cursor.visible = false; @@ -92,11 +124,54 @@ void Start() SetGroundType(); } - private void Update() + private void OnLeftClick(InputAction.CallbackContext ctx) { - ComputeVelocity(); + if (ctx.started) + { + lmbHeld = true; + + if(rmbHeld) + { + shooting = true; + } + else + { + Attack(); + } + } + else if (ctx.canceled) + { + lmbHeld = false; + + if(shooting) + { + shooting = false; + Shoot(); //Holster that weapon + } + } + } + + private void OnRightClick(InputAction.CallbackContext ctx) + { + if (ctx.started) + { + rmbHeld = true; + } + else if (ctx.canceled) + { + rmbHeld = false; + lmbHeld = false; //Reset the left click state if the right click is canceled + + if(shooting) + { + shooting = false; + Shoot(); //Holster that weapon + } + } } + private void Update() => ComputeVelocity(); + protected void ComputeVelocity() { //Player movement & attack @@ -106,54 +181,23 @@ protected void ComputeVelocity() //Lerp launch back to zero at all times launch += (0 - launch) * Time.deltaTime * launchRecovery; - if (Input.GetButtonDown("Cancel")) - { - pauseMenu.SetActive(true); - } - //Movement, jumping, and attacking! if (!frozen) { - move.x = Input.GetAxis("Horizontal") + launch; - - if (Input.GetButtonDown("Jump") && animator.GetBool("grounded") == true && !jumping) - { - animator.SetBool("pounded", false); - Jump(1f); - } + move.x = controls.Player.Direction.ReadValue().x + launch; //Flip the graphic's localScale if (move.x > 0.01f) - { graphic.transform.localScale = new Vector3(origLocalScale.x, transform.localScale.y, transform.localScale.z); - } else if (move.x < -0.01f) - { graphic.transform.localScale = new Vector3(-origLocalScale.x, transform.localScale.y, transform.localScale.z); - } - - //Punch - if (Input.GetMouseButtonDown(0)) - { - animator.SetTrigger("attack"); - Shoot(false); - } - - //Secondary attack (currently shooting) with right click - if (Input.GetMouseButtonDown(1)) - { - Shoot(true); - } - else if (Input.GetMouseButtonUp(1)) - { - Shoot(false); - } - - if (shooting) - { - SubtractAmmo(); - } + if(lmbHeld && rmbHeld) + Shoot(); + + if(shooting) + SubtractAmmo(); + //Allow the player to jump even if they have just fallen off an edge ("fall forgiveness") if (!grounded) { @@ -175,14 +219,10 @@ protected void ComputeVelocity() //Set each animator float, bool, and trigger to it knows which animation to fire animator.SetFloat("velocityX", Mathf.Abs(velocity.x) / maxSpeed); animator.SetFloat("velocityY", velocity.y); - animator.SetInteger("attackDirectionY", (int)Input.GetAxis("VerticalDirection")); - animator.SetInteger("moveDirection", (int)Input.GetAxis("HorizontalDirection")); + animator.SetInteger("attackDirectionY", (int)controls.Player.Direction.ReadValue().y); + animator.SetInteger("moveDirection", (int)controls.Player.Direction.ReadValue().x); animator.SetBool("hasChair", GameManager.Instance.inventory.ContainsKey("chair")); targetVelocity = move * maxSpeed; - - - - } else { @@ -219,7 +259,6 @@ public void Freeze(bool freeze) launch = 0; } - public void GetHurt(int hurtDirection, int hitPower) { //If the player is not frozen (ie talking, spawning, etc), recovering, and pounding, get hurt! @@ -269,7 +308,6 @@ public IEnumerator FreezeFrameEffect(float length = .007f) Time.timeScale = 1f; } - public IEnumerator Die() { if (!frozen) @@ -293,23 +331,23 @@ public void ResetLevel() health = maxHealth; } - public void SubtractAmmo() - { - if (ammo > 0) - { - ammo -= 20 * Time.deltaTime; - } - } - public void Jump(float jumpMultiplier) { - if (velocity.y != jumpPower) + if (!frozen) { - velocity.y = jumpPower * jumpMultiplier; //The jumpMultiplier allows us to use the Jump function to also launch the player from bounce platforms - PlayJumpSound(); - PlayStepSound(); - JumpEffect(); - jumping = true; + if (animator.GetBool("grounded") == true) + { + animator.SetBool("pounded", false); + + if (velocity.y != jumpPower) + { + velocity.y = jumpPower * jumpMultiplier; //The jumpMultiplier allows us to use the Jump function to also launch the player from bounce platforms + PlayJumpSound(); + PlayStepSound(); + JumpEffect(); + jumping = true; + } + } } } @@ -317,7 +355,7 @@ public void PlayStepSound() { //Play a step sound at a random pitch between two floats, while also increasing the volume based on the Horizontal axis audioSource.pitch = (Random.Range(0.9f, 1.1f)); - audioSource.PlayOneShot(stepSound, Mathf.Abs(Input.GetAxis("Horizontal") / 10)); + audioSource.PlayOneShot(stepSound, Mathf.Abs(controls.Player.Direction.ReadValue().x / 10)); } public void PlayJumpSound() @@ -326,7 +364,6 @@ public void PlayJumpSound() GameManager.Instance.audioSource.PlayOneShot(jumpSound, .1f); } - public void JumpEffect() { jumpParticles.Emit(1); @@ -368,6 +405,7 @@ public void ActivatePound() FreezeFrameEffect(.3f); } } + public void PoundEffect() { //As long as the player as activated the pound in ActivatePound, the following will occur when hitting the ground. @@ -397,31 +435,34 @@ public void Hide(bool hide) sprite.gameObject.SetActive(!hide); } - public void Shoot(bool equip) + private void Shoot() { - //Flamethrower ability - if (GameManager.Instance.inventory.ContainsKey("flamethrower")) + if (!frozen) { - if (equip) - { - if (!shooting) + //Flamethrower ability + //if (GameManager.Instance.inventory.ContainsKey("flamethrower")) + //{ + if (shooting) { animator.SetBool("shooting", true); GameManager.Instance.audioSource.PlayOneShot(equipSound); flameParticlesAudioSource.Play(); - shooting = true; } - } - else - { - if (shooting) + else { animator.SetBool("shooting", false); flameParticlesAudioSource.Stop(); GameManager.Instance.audioSource.PlayOneShot(holsterSound); - shooting = false; } - } + //} + } + } + + private void Attack() + { + if(!frozen) + { + animator.SetTrigger("attack"); } } @@ -433,4 +474,18 @@ public void SetUpCheatItems() GameManager.Instance.GetInventoryItem(cheatItems[i], null); } } + + private void SubtractAmmo() + { + if (ammo > 0) + { + ammo -= 20 * Time.deltaTime; + } + } + + private void PauseGame() + { + if(!pauseMenu.activeSelf) + pauseMenu.SetActive(true); + } } \ No newline at end of file diff --git a/Assets/Scripts/Interaction/DialogueTrigger.cs b/Assets/Scripts/Interaction/DialogueTrigger.cs index 872e41f9..0269b112 100644 --- a/Assets/Scripts/Interaction/DialogueTrigger.cs +++ b/Assets/Scripts/Interaction/DialogueTrigger.cs @@ -1,6 +1,7 @@ using System.Collections; using System.Collections.Generic; using UnityEngine; +using UnityEngine.InputSystem; /*Triggers a dialogue conversation, passing unique commands and information to the dialogue box and inventory system for fetch quests, etc.*/ @@ -38,6 +39,32 @@ public class DialogueTrigger : MonoBehaviour [SerializeField] private int requiredCoins; //Or the required coins (cannot require both an item and coins) public Animator useItemAnimator; //If the player uses an item, like a key, an animator can be fired (ie to open a door) [SerializeField] private string useItemAnimatorBool; //An animator bool can be set to true once an item is used, like ae key. + [SerializeField] private bool interactHeld; + + private Controls controls; + + private void Awake() => controls = new Controls(); + + private void OnEnable() { + controls.Enable(); + + controls.Player.Interact.started += Interact; + controls.Player.Interact.canceled += Interact; + } + + private void OnDisable() { + controls.Disable(); + + controls.Player.Interact.started -= Interact; + controls.Player.Interact.canceled -= Interact; + } + + private void Interact(InputAction.CallbackContext ctx) { + if(ctx.started) + interactHeld = true; + else if(ctx.canceled) + interactHeld = false; + } void OnTriggerStay2D(Collider2D col) { @@ -49,7 +76,7 @@ void OnTriggerStay2D(Collider2D col) if (col.gameObject == NewPlayer.Instance.gameObject && !sleeping && !completed && NewPlayer.Instance.grounded) { iconAnimator.SetBool("active", true); - if (autoHit || (Input.GetAxis("Submit") > 0)) + if (autoHit || interactHeld) { iconAnimator.SetBool("active", false); if (requiredItem == "" && requiredCoins == 0 || !GameManager.Instance.inventory.ContainsKey(requiredItem) && requiredCoins == 0 || (requiredCoins != 0 && NewPlayer.Instance.coins < requiredCoins)) diff --git a/Assets/Scripts/UI/PauseMenu.cs b/Assets/Scripts/UI/PauseMenu.cs index fda51e8f..e1fffc97 100644 --- a/Assets/Scripts/UI/PauseMenu.cs +++ b/Assets/Scripts/UI/PauseMenu.cs @@ -11,12 +11,25 @@ public class PauseMenu : MonoBehaviour [SerializeField] AudioClip openSound; [SerializeField] GameObject pauseMenu; - // Use this for initialization + private Controls controls; + + private void Awake() => controls = new Controls(); + void OnEnable() { + controls.Enable(); Cursor.visible = true; GameManager.Instance.audioSource.PlayOneShot(openSound); Time.timeScale = 0f; + + controls.UI.Escape.performed += _ => Unpause(); + } + + void OnDisable() + { + controls.Disable(); + + controls.UI.Escape.performed -= _ => Unpause(); } public void Unpause() diff --git a/Logs/ApiUpdaterCheck.txt b/Logs/ApiUpdaterCheck.txt new file mode 100644 index 00000000..095ea2d8 --- /dev/null +++ b/Logs/ApiUpdaterCheck.txt @@ -0,0 +1,50 @@ +[api-updater (non-obsolete-error-filter)] 21/02/2022 3:53:46 PM : Starting B:/Unity Editors/2020.3.29f1/Editor/Data/Tools/ScriptUpdater/APIUpdater.NonObsoleteApiUpdaterDetector.exe +[api-updater (non-obsolete-error-filter)] +---------------------------------- +jit/startup time : 147.0113ms +moved types parse time: 49ms +candidates parse time : 1ms +C# parse time : 498ms +candidates check time : 74ms +console write time : 0ms + +[api-updater (non-obsolete-error-filter)] 21/02/2022 3:54:14 PM : Starting B:/Unity Editors/2020.3.29f1/Editor/Data/Tools/ScriptUpdater/APIUpdater.NonObsoleteApiUpdaterDetector.exe +[api-updater (non-obsolete-error-filter)] +---------------------------------- +jit/startup time : 70.0153ms +moved types parse time: 50ms +candidates parse time : 1ms +C# parse time : 208ms +candidates check time : 74ms +console write time : 0ms + +[api-updater (non-obsolete-error-filter)] 21/02/2022 5:29:31 PM : Starting B:/Unity Editors/2020.3.29f1/Editor/Data/Tools/ScriptUpdater/APIUpdater.NonObsoleteApiUpdaterDetector.exe +[api-updater (non-obsolete-error-filter)] +---------------------------------- +jit/startup time : 73.0951ms +moved types parse time: 49ms +candidates parse time : 1ms +C# parse time : 208ms +candidates check time : 63ms +console write time : 0ms + +[api-updater (non-obsolete-error-filter)] 21/02/2022 5:52:15 PM : Starting B:/Unity Editors/2020.3.29f1/Editor/Data/Tools/ScriptUpdater/APIUpdater.NonObsoleteApiUpdaterDetector.exe +[api-updater (non-obsolete-error-filter)] +---------------------------------- +jit/startup time : 75.0873ms +moved types parse time: 48ms +candidates parse time : 1ms +C# parse time : 241ms +candidates check time : 115ms +console write time : 0ms + +[api-updater (non-obsolete-error-filter)] 21/02/2022 10:36:36 PM : Starting B:/Unity Editors/2020.3.29f1/Editor/Data/Tools/ScriptUpdater/APIUpdater.NonObsoleteApiUpdaterDetector.exe +[api-updater (non-obsolete-error-filter)] +---------------------------------- +jit/startup time : 77.0162ms +moved types parse time: 49ms +candidates parse time : 1ms +C# parse time : 183ms +candidates check time : 49ms +console write time : 0ms + diff --git a/Packages/manifest.json b/Packages/manifest.json index 969a6eba..67585f11 100644 --- a/Packages/manifest.json +++ b/Packages/manifest.json @@ -1,19 +1,20 @@ { "dependencies": { - "com.unity.2d.animation": "5.0.6", - "com.unity.2d.psdimporter": "4.1.0", + "com.unity.2d.animation": "5.1.0", + "com.unity.2d.psdimporter": "4.2.0", "com.unity.2d.sprite": "1.0.0", "com.unity.2d.tilemap": "1.0.0", "com.unity.ads": "3.7.5", - "com.unity.analytics": "3.6.11", - "com.unity.cinemachine": "2.6.0", - "com.unity.collab-proxy": "1.9.0", + "com.unity.analytics": "3.6.12", + "com.unity.cinemachine": "2.6.11", + "com.unity.collab-proxy": "1.15.13", "com.unity.ide.rider": "2.0.7", - "com.unity.ide.visualstudio": "2.0.11", - "com.unity.ide.vscode": "1.2.4", - "com.unity.multiplayer-hlapi": "1.0.6", - "com.unity.purchasing": "3.2.2", - "com.unity.test-framework": "1.1.29", + "com.unity.ide.visualstudio": "2.0.14", + "com.unity.ide.vscode": "1.2.5", + "com.unity.inputsystem": "1.3.0", + "com.unity.multiplayer-hlapi": "1.0.8", + "com.unity.purchasing": "4.1.3", + "com.unity.test-framework": "1.1.31", "com.unity.textmeshpro": "3.0.6", "com.unity.timeline": "1.4.8", "com.unity.ugui": "1.0.0", diff --git a/Packages/packages-lock.json b/Packages/packages-lock.json index f82c1b3c..9df74765 100644 --- a/Packages/packages-lock.json +++ b/Packages/packages-lock.json @@ -1,11 +1,11 @@ { "dependencies": { "com.unity.2d.animation": { - "version": "5.0.6", + "version": "5.1.0", "depth": 0, "source": "registry", "dependencies": { - "com.unity.2d.common": "4.0.3", + "com.unity.2d.common": "4.1.0", "com.unity.mathematics": "1.1.0", "com.unity.2d.sprite": "1.0.0", "com.unity.modules.animation": "1.0.0", @@ -14,7 +14,7 @@ "url": "https://packages.unity.com" }, "com.unity.2d.common": { - "version": "4.0.3", + "version": "4.1.0", "depth": 1, "source": "registry", "dependencies": { @@ -24,12 +24,12 @@ "url": "https://packages.unity.com" }, "com.unity.2d.psdimporter": { - "version": "4.1.0", + "version": "4.2.0", "depth": 0, "source": "registry", "dependencies": { - "com.unity.2d.common": "4.0.3", - "com.unity.2d.animation": "5.0.6", + "com.unity.2d.common": "4.1.0", + "com.unity.2d.animation": "5.1.0", "com.unity.2d.sprite": "1.0.0" }, "url": "https://packages.unity.com" @@ -56,7 +56,7 @@ "url": "https://packages.unity.com" }, "com.unity.analytics": { - "version": "3.6.11", + "version": "3.6.12", "depth": 0, "source": "registry", "dependencies": { @@ -65,17 +65,19 @@ "url": "https://packages.unity.com" }, "com.unity.cinemachine": { - "version": "2.6.0", + "version": "2.6.11", "depth": 0, "source": "registry", "dependencies": {}, "url": "https://packages.unity.com" }, "com.unity.collab-proxy": { - "version": "1.9.0", + "version": "1.15.13", "depth": 0, "source": "registry", - "dependencies": {}, + "dependencies": { + "com.unity.services.core": "1.0.1" + }, "url": "https://packages.unity.com" }, "com.unity.ext.nunit": { @@ -95,7 +97,7 @@ "url": "https://packages.unity.com" }, "com.unity.ide.visualstudio": { - "version": "2.0.11", + "version": "2.0.14", "depth": 0, "source": "registry", "dependencies": { @@ -104,12 +106,21 @@ "url": "https://packages.unity.com" }, "com.unity.ide.vscode": { - "version": "1.2.4", + "version": "1.2.5", "depth": 0, "source": "registry", "dependencies": {}, "url": "https://packages.unity.com" }, + "com.unity.inputsystem": { + "version": "1.3.0", + "depth": 0, + "source": "registry", + "dependencies": { + "com.unity.modules.uielements": "1.0.0" + }, + "url": "https://packages.unity.com" + }, "com.unity.mathematics": { "version": "1.1.0", "depth": 1, @@ -118,7 +129,7 @@ "url": "https://packages.unity.com" }, "com.unity.multiplayer-hlapi": { - "version": "1.0.6", + "version": "1.0.8", "depth": 0, "source": "registry", "dependencies": { @@ -127,7 +138,7 @@ "url": "https://packages.unity.com" }, "com.unity.purchasing": { - "version": "3.2.2", + "version": "4.1.3", "depth": 0, "source": "registry", "dependencies": { @@ -135,12 +146,22 @@ "com.unity.modules.unityanalytics": "1.0.0", "com.unity.modules.unitywebrequest": "1.0.0", "com.unity.modules.jsonserialize": "1.0.0", - "com.unity.modules.androidjni": "1.0.0" + "com.unity.modules.androidjni": "1.0.0", + "com.unity.services.core": "1.0.1" + }, + "url": "https://packages.unity.com" + }, + "com.unity.services.core": { + "version": "1.0.1", + "depth": 1, + "source": "registry", + "dependencies": { + "com.unity.modules.unitywebrequest": "1.0.0" }, "url": "https://packages.unity.com" }, "com.unity.test-framework": { - "version": "1.1.29", + "version": "1.1.31", "depth": 0, "source": "registry", "dependencies": { diff --git a/ProjectSettings/ProjectSettings.asset b/ProjectSettings/ProjectSettings.asset index 8050bbf3..1389ce81 100644 --- a/ProjectSettings/ProjectSettings.asset +++ b/ProjectSettings/ProjectSettings.asset @@ -3,7 +3,7 @@ --- !u!129 &1 PlayerSettings: m_ObjectHideFlags: 0 - serializedVersion: 20 + serializedVersion: 22 productGUID: 38b2b35f5d90248b780cd7879d1f93a3 AndroidProfiler: 0 AndroidFilterTouchesWhenObscured: 0 @@ -51,6 +51,8 @@ PlayerSettings: m_StereoRenderingPath: 0 m_ActiveColorSpace: 0 m_MTRendering: 1 + mipStripping: 0 + numberOfMipsStripped: 0 m_StackTraceTypes: 010000000100000001000000010000000100000001000000 iosShowActivityIndicatorOnLoading: -1 androidShowActivityIndicatorOnLoading: -1 @@ -68,6 +70,12 @@ PlayerSettings: androidRenderOutsideSafeArea: 1 androidUseSwappy: 0 androidBlitType: 0 + androidResizableWindow: 0 + androidDefaultWindowWidth: 1920 + androidDefaultWindowHeight: 1080 + androidMinimumWindowWidth: 400 + androidMinimumWindowHeight: 300 + androidFullscreenMode: 1 defaultIsNativeResolution: 0 macRetinaSupport: 1 runInBackground: 1 @@ -113,10 +121,15 @@ PlayerSettings: switchNVNShaderPoolsGranularity: 33554432 switchNVNDefaultPoolsGranularity: 16777216 switchNVNOtherPoolsGranularity: 16777216 + switchNVNMaxPublicTextureIDCount: 0 + switchNVNMaxPublicSamplerIDCount: 0 stadiaPresentMode: 0 stadiaTargetFramerate: 0 vulkanNumSwapchainBuffers: 3 vulkanEnableSetSRGBWrite: 0 + vulkanEnablePreTransform: 0 + vulkanEnableLateAcquireNextImage: 0 + vulkanEnableCommandBufferRecycling: 1 m_SupportedAspectRatios: 4:3: 1 5:4: 1 @@ -131,31 +144,6 @@ PlayerSettings: xboxOneDisableKinectGpuReservation: 0 xboxOneEnable7thCore: 0 vrSettings: - cardboard: - depthFormat: 0 - enableTransitionView: 0 - daydream: - depthFormat: 0 - useSustainedPerformanceMode: 0 - enableVideoLayer: 0 - useProtectedVideoMemory: 0 - minimumSupportedHeadTracking: 0 - maximumSupportedHeadTracking: 1 - hololens: - depthFormat: 1 - depthBufferSharingEnabled: 0 - lumin: - depthFormat: 0 - frameTiming: 2 - enableGLCache: 0 - glCacheMaxBlobSize: 524288 - glCacheMaxFileSize: 8388608 - oculus: - sharedDepthBuffer: 0 - dashSupport: 0 - lowOverheadMode: 0 - protectedContext: 0 - v2Signing: 1 enable360StereoCapture: 0 isWsaHolographicRemotingEnabled: 0 enableFrameTimingStats: 0 @@ -167,8 +155,12 @@ PlayerSettings: androidSupportedAspectRatio: 1 androidMaxAspectRatio: 2.1 applicationIdentifier: - Standalone: com.Company.ProductName - buildNumber: {} + Standalone: com.AtmosGames.ZeroDeaths + buildNumber: + Standalone: 0 + iPhone: 0 + tvOS: 0 + overrideDefaultApplicationIdentifier: 0 AndroidBundleVersionCode: 1 AndroidMinSdkVersion: 19 AndroidTargetSdkVersion: 0 @@ -185,10 +177,10 @@ PlayerSettings: StripUnusedMeshComponents: 1 VertexChannelCompressionMask: 4054 iPhoneSdkVersion: 988 - iOSTargetOSVersionString: 10.0 + iOSTargetOSVersionString: 11.0 tvOSSdkVersion: 0 tvOSRequireExtendedGameController: 0 - tvOSTargetOSVersionString: 10.0 + tvOSTargetOSVersionString: 11.0 uIPrerenderedIcon: 0 uIRequiresPersistentWiFi: 0 uIRequiresFullScreen: 1 @@ -222,8 +214,8 @@ PlayerSettings: iOSLaunchScreeniPadFillPct: 100 iOSLaunchScreeniPadSize: 100 iOSLaunchScreeniPadCustomXibPath: - iOSUseLaunchScreenStoryboard: 0 iOSLaunchScreenCustomStoryboardPath: + iOSLaunchScreeniPadCustomStoryboardPath: iOSDeviceRequirements: [] iOSURLSchemes: [] iOSBackgroundModes: 0 @@ -231,6 +223,7 @@ PlayerSettings: metalEditorSupport: 1 metalAPIValidation: 1 iOSRenderExtraFrameOnPause: 0 + iosCopyPluginsCodeInsteadOfSymlink: 0 appleDeveloperTeamID: iOSManualSigningProvisioningProfileID: tvOSManualSigningProvisioningProfileID: @@ -240,10 +233,19 @@ PlayerSettings: iOSRequireARKit: 0 iOSAutomaticallyDetectAndAddCapabilities: 1 appleEnableProMotion: 0 + shaderPrecisionModel: 0 clonedFromGUID: 5f34be1353de5cf4398729fda238591b templatePackageId: com.unity.template.2d@1.0.1 templateDefaultScene: Assets/Scenes/SampleScene.unity + useCustomMainManifest: 0 + useCustomLauncherManifest: 0 + useCustomMainGradleTemplate: 0 + useCustomLauncherGradleManifest: 0 + useCustomBaseGradleTemplate: 0 + useCustomGradlePropertiesTemplate: 0 + useCustomProguardFile: 0 AndroidTargetArchitectures: 5 + AndroidTargetDevices: 0 AndroidSplashScreenScale: 0 androidSplashScreen: {fileID: 0} AndroidKeystoreName: '{inproject}: ' @@ -260,6 +262,10 @@ PlayerSettings: height: 180 banner: {fileID: 0} androidGamepadSupportLevel: 0 + chromeosInputEmulation: 1 + AndroidMinifyWithR8: 0 + AndroidMinifyRelease: 0 + AndroidMinifyDebug: 0 AndroidValidateAppBundleSize: 1 AndroidAppBundleSizeToValidate: 150 m_BuildTargetIcons: @@ -304,7 +310,10 @@ PlayerSettings: m_GraphicsJobMode: 0 - m_BuildTarget: XboxOnePlayer m_GraphicsJobMode: 0 - m_BuildTargetGraphicsAPIs: [] + m_BuildTargetGraphicsAPIs: + - m_BuildTarget: iOSSupport + m_APIs: 10000000 + m_Automatic: 1 m_BuildTargetVRSettings: [] openGLRequireES31: 0 openGLRequireES31AEP: 0 @@ -316,6 +325,7 @@ PlayerSettings: tvOS: 1 m_BuildTargetGroupLightmapEncodingQuality: [] m_BuildTargetGroupLightmapSettings: [] + m_BuildTargetNormalMapEncoding: [] playModeTestRunnerEnabled: 0 runPlayModeTestAsEditModeTest: 0 actionOnDotNetUnhandledException: 1 @@ -325,12 +335,15 @@ PlayerSettings: cameraUsageDescription: locationUsageDescription: microphoneUsageDescription: + bluetoothUsageDescription: + switchNMETAOverride: switchNetLibKey: switchSocketMemoryPoolSize: 6144 switchSocketAllocatorPoolSize: 128 switchSocketConcurrencyLimit: 14 switchScreenResolutionBehavior: 2 switchUseCPUProfiler: 0 + switchUseGOLDLinker: 0 switchApplicationID: 0x01004b9000490000 switchNSODependencies: switchTitleNames_0: @@ -348,6 +361,7 @@ PlayerSettings: switchTitleNames_12: switchTitleNames_13: switchTitleNames_14: + switchTitleNames_15: switchPublisherNames_0: switchPublisherNames_1: switchPublisherNames_2: @@ -363,6 +377,7 @@ PlayerSettings: switchPublisherNames_12: switchPublisherNames_13: switchPublisherNames_14: + switchPublisherNames_15: switchIcons_0: {fileID: 0} switchIcons_1: {fileID: 0} switchIcons_2: {fileID: 0} @@ -378,6 +393,7 @@ PlayerSettings: switchIcons_12: {fileID: 0} switchIcons_13: {fileID: 0} switchIcons_14: {fileID: 0} + switchIcons_15: {fileID: 0} switchSmallIcons_0: {fileID: 0} switchSmallIcons_1: {fileID: 0} switchSmallIcons_2: {fileID: 0} @@ -393,6 +409,7 @@ PlayerSettings: switchSmallIcons_12: {fileID: 0} switchSmallIcons_13: {fileID: 0} switchSmallIcons_14: {fileID: 0} + switchSmallIcons_15: {fileID: 0} switchManualHTML: switchAccessibleURLs: switchLegalInformation: @@ -455,6 +472,11 @@ PlayerSettings: switchSocketInitializeEnabled: 1 switchNetworkInterfaceManagerInitializeEnabled: 1 switchPlayerConnectionEnabled: 1 + switchUseNewStyleFilepaths: 0 + switchUseMicroSleepForYield: 1 + switchEnableRamDiskSupport: 0 + switchMicroSleepForYieldTime: 25 + switchRamDiskSpaceSize: 12 ps4NPAgeRating: 12 ps4NPTitleSecret: ps4NPTrophyPackPath: @@ -481,6 +503,7 @@ PlayerSettings: ps4ShareFilePath: ps4ShareOverlayImagePath: ps4PrivacyGuardImagePath: + ps4ExtraSceSysFile: ps4NPtitleDatPath: ps4RemotePlayKeyAssignment: -1 ps4RemotePlayKeyMappingDir: @@ -523,6 +546,9 @@ PlayerSettings: ps4disableAutoHideSplash: 0 ps4videoRecordingFeaturesUsed: 0 ps4contentSearchFeaturesUsed: 0 + ps4CompatibilityPS5: 0 + ps4AllowPS5Detection: 0 + ps4GPU800MHz: 1 ps4attribEyeToEyeDistanceSettingVR: 0 ps4IncludedModules: [] ps4attribVROutputEnabled: 0 @@ -543,9 +569,10 @@ PlayerSettings: webGLAnalyzeBuildSize: 0 webGLUseEmbeddedResources: 0 webGLCompressionFormat: 1 + webGLWasmArithmeticExceptions: 0 webGLLinkerTarget: 1 webGLThreadsSupport: 0 - webGLWasmStreaming: 0 + webGLDecompressionFallback: 0 scriptingDefineSymbols: 1: CROSS_PLATFORM_INPUT;UNITY_POST_PROCESSING_STACK_V2 4: CROSS_PLATFORM_INPUT;MOBILE_INPUT @@ -558,15 +585,21 @@ PlayerSettings: 27: UNITY_POST_PROCESSING_STACK_V2 28: UNITY_POST_PROCESSING_STACK_V2 29: UNITY_POST_PROCESSING_STACK_V2 + additionalCompilerArguments: {} platformArchitecture: {} scriptingBackend: {} il2cppCompilerConfiguration: {} managedStrippingLevel: {} incrementalIl2cppBuild: {} + suppressCommonWarnings: 1 allowUnsafeCode: 0 + useDeterministicCompilation: 1 + useReferenceAssemblies: 1 + enableRoslynAnalyzers: 1 additionalIl2CppArgs: scriptingRuntimeVersion: 1 gcIncremental: 0 + assemblyVersionValidation: 1 gcWBarrierValidation: 0 apiCompatibilityLevelPerPlatform: {} m_RenderingPath: 1 @@ -616,6 +649,7 @@ PlayerSettings: XboxOneCapability: [] XboxOneGameRating: {} XboxOneIsContentPackage: 0 + XboxOneEnhancedXboxCompatibilityMode: 0 XboxOneEnableGPUVariability: 0 XboxOneSockets: {} XboxOneSplashScreen: {fileID: 0} @@ -624,10 +658,7 @@ PlayerSettings: XboxOneXTitleMemory: 8 XboxOneOverrideIdentityName: XboxOneOverrideIdentityPublisher: - vrEditorSettings: - daydream: - daydreamIconForeground: {fileID: 0} - daydreamIconBackground: {fileID: 0} + vrEditorSettings: {} cloudServicesEnabled: UNet: 1 luminIcon: @@ -642,11 +673,12 @@ PlayerSettings: m_VersionCode: 1 m_VersionName: apiCompatibilityLevel: 6 + activeInputHandler: 1 cloudProjectId: ba8de198-8e1f-42a1-88da-9422982b81b2 framebufferDepthMemorylessMode: 0 + qualitySettingsNames: [] projectName: PewDiePieDareR2 organizationId: atmosgames cloudEnabled: 0 - enableNativePlatformBackendsForNewInputSystem: 0 - disableOldInputManagerSupport: 0 legacyClampBlendShapeWeights: 1 + virtualTexturingSupportEnabled: 0 diff --git a/obj/Debug/.NETFramework,Version=v4.7.1.AssemblyAttributes.cs b/obj/Debug/.NETFramework,Version=v4.7.1.AssemblyAttributes.cs new file mode 100644 index 00000000..2afc0312 --- /dev/null +++ b/obj/Debug/.NETFramework,Version=v4.7.1.AssemblyAttributes.cs @@ -0,0 +1,4 @@ +// +using System; +using System.Reflection; +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.1", FrameworkDisplayName = ".NET Framework 4.7.1")] diff --git a/obj/Debug/Assembly-CSharp-Editor.csproj.AssemblyReference.cache b/obj/Debug/Assembly-CSharp-Editor.csproj.AssemblyReference.cache new file mode 100644 index 00000000..76977693 Binary files /dev/null and b/obj/Debug/Assembly-CSharp-Editor.csproj.AssemblyReference.cache differ diff --git a/obj/Debug/Assembly-CSharp.csproj.AssemblyReference.cache b/obj/Debug/Assembly-CSharp.csproj.AssemblyReference.cache new file mode 100644 index 00000000..64625112 Binary files /dev/null and b/obj/Debug/Assembly-CSharp.csproj.AssemblyReference.cache differ