From 00f001ab1df95c96d5d148133bf1dbd790baae05 Mon Sep 17 00:00:00 2001 From: Carson Katri Date: Sat, 12 Jun 2021 12:52:30 -0400 Subject: [PATCH] Add player graphics --- Assets/Prefabs/Ball.prefab | 14 + Assets/Prefabs/Player.prefab | 1620 +++++++++++++---- Assets/Scenes/Main.unity | 267 ++- Assets/Scripts/Controllers/Ball.cs | 24 + Assets/Scripts/Controllers/Ball.cs.meta | 3 + Assets/Scripts/Controllers/GameController.cs | 113 ++ .../Controllers/GameController.cs.meta | 3 + .../Controllers/Player/PlayerController.cs | 67 +- .../Controllers/Player/PlayerSegment.cs | 8 +- Assets/Sprites/Player.png | Bin 0 -> 654 bytes Assets/Sprites/Player.png.meta | 240 +++ 11 files changed, 1953 insertions(+), 406 deletions(-) create mode 100644 Assets/Scripts/Controllers/Ball.cs create mode 100644 Assets/Scripts/Controllers/Ball.cs.meta create mode 100644 Assets/Scripts/Controllers/GameController.cs create mode 100644 Assets/Scripts/Controllers/GameController.cs.meta create mode 100644 Assets/Sprites/Player.png create mode 100644 Assets/Sprites/Player.png.meta diff --git a/Assets/Prefabs/Ball.prefab b/Assets/Prefabs/Ball.prefab index ad059a7..2eae923 100644 --- a/Assets/Prefabs/Ball.prefab +++ b/Assets/Prefabs/Ball.prefab @@ -11,6 +11,7 @@ GameObject: - component: {fileID: 5143626018439341592} - component: {fileID: 7502293481755037355} - component: {fileID: 2510945038599774573} + - component: {fileID: 6267610020350316690} m_Layer: 7 m_Name: Ball m_TagString: Untagged @@ -70,6 +71,19 @@ Rigidbody2D: m_SleepingMode: 1 m_CollisionDetection: 0 m_Constraints: 0 +--- !u!114 &6267610020350316690 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 4042332068071005264} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 71c18c0662ec4384bf64aae1dc016093, type: 3} + m_Name: + m_EditorClassIdentifier: + shotForce: 500 --- !u!1 &5614667194888028005 GameObject: m_ObjectHideFlags: 0 diff --git a/Assets/Prefabs/Player.prefab b/Assets/Prefabs/Player.prefab index 4b92389..ede5633 100644 --- a/Assets/Prefabs/Player.prefab +++ b/Assets/Prefabs/Player.prefab @@ -1,6 +1,6 @@ %YAML 1.1 %TAG !u! tag:unity3d.com,2011: ---- !u!1 &476429766403681147 +--- !u!1 &61032117990659215 GameObject: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} @@ -8,36 +8,36 @@ GameObject: m_PrefabAsset: {fileID: 0} serializedVersion: 6 m_Component: - - component: {fileID: 1299794603187148047} - - component: {fileID: 8177603981592965145} + - component: {fileID: 5588061831825342868} + - component: {fileID: 5936857703093018383} m_Layer: 0 - m_Name: RightArrow + m_Name: Arm.Right m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 - m_IsActive: 0 ---- !u!4 &1299794603187148047 + m_IsActive: 1 +--- !u!4 &5588061831825342868 Transform: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 476429766403681147} + m_GameObject: {fileID: 61032117990659215} m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 1.5, y: 0, z: 0} - m_LocalScale: {x: 6, y: 3, z: 1} + m_LocalPosition: {x: -0.16, y: 0.22000027, z: 0} + m_LocalScale: {x: 4, y: 4, z: 1} m_Children: [] - m_Father: {fileID: 6095859832867562448} - m_RootOrder: 1 + m_Father: {fileID: 6095859833589646295} + m_RootOrder: 6 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!212 &8177603981592965145 +--- !u!212 &5936857703093018383 SpriteRenderer: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 476429766403681147} + m_GameObject: {fileID: 61032117990659215} m_Enabled: 1 m_CastShadows: 0 m_ReceiveShadows: 0 @@ -70,19 +70,19 @@ SpriteRenderer: m_LightmapParameters: {fileID: 0} m_SortingLayerID: 0 m_SortingLayer: 0 - m_SortingOrder: 0 - m_Sprite: {fileID: 2013261503205373015, guid: 4c50c736e129f4891bb6f68b964d823d, type: 3} + m_SortingOrder: 2 + m_Sprite: {fileID: -1182821291677670348, guid: 0970daff6a8334275aa357cffa9fcf05, type: 3} m_Color: {r: 1, g: 1, b: 1, a: 1} m_FlipX: 0 m_FlipY: 0 m_DrawMode: 0 - m_Size: {x: 0.14, y: 0.14} + m_Size: {x: 0.04, y: 0.11} m_AdaptiveModeThreshold: 0.5 m_SpriteTileMode: 0 m_WasSpriteAssigned: 1 m_MaskInteraction: 0 m_SpriteSortPoint: 0 ---- !u!1 &5020703169596630212 +--- !u!1 &168482877463247243 GameObject: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} @@ -90,36 +90,36 @@ GameObject: m_PrefabAsset: {fileID: 0} serializedVersion: 6 m_Component: - - component: {fileID: 5614014003094209757} - - component: {fileID: 9153823608011860787} + - component: {fileID: 262767061358356167} + - component: {fileID: 3459380805264537065} m_Layer: 0 - m_Name: LeftArrow + m_Name: Body m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 - m_IsActive: 0 ---- !u!4 &5614014003094209757 + m_IsActive: 1 +--- !u!4 &262767061358356167 Transform: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 5020703169596630212} + m_GameObject: {fileID: 168482877463247243} m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: -1.5, y: 0, z: 0} - m_LocalScale: {x: 6, y: 3, z: 1} + m_LocalPosition: {x: -0.23999996, y: -0.1400001, z: 0} + m_LocalScale: {x: 4, y: 4, z: 1} m_Children: [] - m_Father: {fileID: 6095859832867562448} - m_RootOrder: 0 + m_Father: {fileID: 6095859833589646295} + m_RootOrder: 2 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!212 &9153823608011860787 +--- !u!212 &3459380805264537065 SpriteRenderer: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 5020703169596630212} + m_GameObject: {fileID: 168482877463247243} m_Enabled: 1 m_CastShadows: 0 m_ReceiveShadows: 0 @@ -152,19 +152,19 @@ SpriteRenderer: m_LightmapParameters: {fileID: 0} m_SortingLayerID: 0 m_SortingLayer: 0 - m_SortingOrder: 0 - m_Sprite: {fileID: -5402412272178277761, guid: 4c50c736e129f4891bb6f68b964d823d, type: 3} + m_SortingOrder: 1 + m_Sprite: {fileID: -6287787046888575383, guid: 0970daff6a8334275aa357cffa9fcf05, type: 3} m_Color: {r: 1, g: 1, b: 1, a: 1} m_FlipX: 0 m_FlipY: 0 m_DrawMode: 0 - m_Size: {x: 0.14, y: 0.14} + m_Size: {x: 0.1, y: 0.11} m_AdaptiveModeThreshold: 0.5 m_SpriteTileMode: 0 m_WasSpriteAssigned: 1 m_MaskInteraction: 0 m_SpriteSortPoint: 0 ---- !u!1 &5321565721314628342 +--- !u!1 &414971659141114100 GameObject: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} @@ -172,36 +172,36 @@ GameObject: m_PrefabAsset: {fileID: 0} serializedVersion: 6 m_Component: - - component: {fileID: 1077578955052460591} - - component: {fileID: 3996879309566229940} + - component: {fileID: 4617615456759737811} + - component: {fileID: 7378570828369499491} m_Layer: 0 - m_Name: A + m_Name: Leg.Left m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 - m_IsActive: 0 ---- !u!4 &1077578955052460591 + m_IsActive: 1 +--- !u!4 &4617615456759737811 Transform: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 5321565721314628342} + m_GameObject: {fileID: 414971659141114100} m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: -1.5, y: 0, z: 0} - m_LocalScale: {x: 6, y: 3, z: 1} + m_LocalPosition: {x: 0.08, y: -0.44000006, z: 0} + m_LocalScale: {x: 4, y: 4, z: 1} m_Children: [] - m_Father: {fileID: 6095859833589646295} - m_RootOrder: 0 + m_Father: {fileID: 6095859832867562448} + m_RootOrder: 3 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!212 &3996879309566229940 +--- !u!212 &7378570828369499491 SpriteRenderer: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 5321565721314628342} + m_GameObject: {fileID: 414971659141114100} m_Enabled: 1 m_CastShadows: 0 m_ReceiveShadows: 0 @@ -235,18 +235,18 @@ SpriteRenderer: m_SortingLayerID: 0 m_SortingLayer: 0 m_SortingOrder: 0 - m_Sprite: {fileID: 8894201953851282084, guid: 4c50c736e129f4891bb6f68b964d823d, type: 3} + m_Sprite: {fileID: 7364682651488144517, guid: 0970daff6a8334275aa357cffa9fcf05, type: 3} m_Color: {r: 1, g: 1, b: 1, a: 1} m_FlipX: 0 m_FlipY: 0 m_DrawMode: 0 - m_Size: {x: 0.14, y: 0.14} + m_Size: {x: 0.05, y: 0.11} m_AdaptiveModeThreshold: 0.5 m_SpriteTileMode: 0 m_WasSpriteAssigned: 1 m_MaskInteraction: 0 m_SpriteSortPoint: 0 ---- !u!1 &6095859832867562451 +--- !u!1 &476429766403681147 GameObject: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} @@ -254,61 +254,36 @@ GameObject: m_PrefabAsset: {fileID: 0} serializedVersion: 6 m_Component: - - component: {fileID: 6095859832867562448} - - component: {fileID: 6967752935869289387} - - component: {fileID: 6095859832867562449} - - component: {fileID: 6095859832867562452} - - component: {fileID: 6095859832867562454} - - component: {fileID: 6095859832867562455} - m_Layer: 6 - m_Name: Segment + - component: {fileID: 1299794603187148047} + - component: {fileID: 8177603981592965145} + m_Layer: 0 + m_Name: RightArrow m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &6095859832867562448 + m_IsActive: 0 +--- !u!4 &1299794603187148047 Transform: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 6095859832867562451} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 1.3, z: 0} - m_LocalScale: {x: 0.5, y: 1, z: 1} - m_Children: - - {fileID: 5614014003094209757} - - {fileID: 1299794603187148047} - m_Father: {fileID: 6095859834264611321} + m_GameObject: {fileID: 476429766403681147} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0.9, y: 0, z: 0} + m_LocalScale: {x: 3, y: 3, z: 1} + m_Children: [] + m_Father: {fileID: 4383152884674024269} m_RootOrder: 1 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &6967752935869289387 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 6095859832867562451} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 99303295fe534f42863cd15bf22587f9, type: 3} - m_Name: - m_EditorClassIdentifier: - left: - keyCode: 276 - icon: {fileID: 5020703169596630212} - right: - keyCode: 275 - icon: {fileID: 476429766403681147} - forceOrigin: {x: 0, y: 0.5, z: 0} ---- !u!212 &6095859832867562449 +--- !u!212 &8177603981592965145 SpriteRenderer: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 6095859832867562451} + m_GameObject: {fileID: 476429766403681147} m_Enabled: 1 m_CastShadows: 0 m_ReceiveShadows: 0 @@ -342,89 +317,100 @@ SpriteRenderer: m_SortingLayerID: 0 m_SortingLayer: 0 m_SortingOrder: 0 - m_Sprite: {fileID: 7482667652216324306, guid: 48e93eef0688c4a259cb0eddcd8661f7, type: 3} + m_Sprite: {fileID: 2013261503205373015, guid: 4c50c736e129f4891bb6f68b964d823d, type: 3} m_Color: {r: 1, g: 1, b: 1, a: 1} m_FlipX: 0 m_FlipY: 0 m_DrawMode: 0 - m_Size: {x: 1, y: 1} + m_Size: {x: 0.14, y: 0.14} m_AdaptiveModeThreshold: 0.5 m_SpriteTileMode: 0 m_WasSpriteAssigned: 1 m_MaskInteraction: 0 m_SpriteSortPoint: 0 ---- !u!50 &6095859832867562452 -Rigidbody2D: - serializedVersion: 4 +--- !u!1 &1155082106432933183 +GameObject: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 6095859832867562451} - m_BodyType: 0 - m_Simulated: 1 - m_UseFullKinematicContacts: 0 - m_UseAutoMass: 0 - m_Mass: 1 - m_LinearDrag: 0 - m_AngularDrag: 0.05 - m_GravityScale: 1 - m_Material: {fileID: 0} - m_Interpolate: 0 - m_SleepingMode: 1 - m_CollisionDetection: 0 - m_Constraints: 0 ---- !u!61 &6095859832867562454 -BoxCollider2D: + serializedVersion: 6 + m_Component: + - component: {fileID: 1950673337898001336} + - component: {fileID: 9223032480722665561} + m_Layer: 0 + m_Name: Body + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &1950673337898001336 +Transform: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 6095859832867562451} - m_Enabled: 1 - m_Density: 1 - m_Material: {fileID: 0} - m_IsTrigger: 0 - m_UsedByEffector: 0 - m_UsedByComposite: 0 - m_Offset: {x: 0, y: 0} - m_SpriteTilingProperty: - border: {x: 0, y: 0, z: 0, w: 0} - pivot: {x: 0.5, y: 0.5} - oldSize: {x: 1, y: 1} - newSize: {x: 1, y: 1} - adaptiveTilingThreshold: 0.5 - drawMode: 0 - adaptiveTiling: 0 - m_AutoTiling: 0 - serializedVersion: 2 - m_Size: {x: 1, y: 1} - m_EdgeRadius: 0.05 ---- !u!233 &6095859832867562455 -HingeJoint2D: + m_GameObject: {fileID: 1155082106432933183} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: -0.23999998, y: -0.4000001, z: 0} + m_LocalScale: {x: 4, y: 4, z: 1} + m_Children: [] + m_Father: {fileID: 6095859832867562448} + m_RootOrder: 2 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!212 &9223032480722665561 +SpriteRenderer: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 6095859832867562451} + m_GameObject: {fileID: 1155082106432933183} m_Enabled: 1 - serializedVersion: 4 - m_EnableCollision: 1 - m_ConnectedRigidBody: {fileID: 6095859833589646292} - m_BreakForce: Infinity - m_BreakTorque: Infinity - m_AutoConfigureConnectedAnchor: 0 - m_Anchor: {x: 0, y: -0.6} - m_ConnectedAnchor: {x: 0, y: 0.6} - m_UseMotor: 1 - m_Motor: - m_MotorSpeed: 5 - m_MaximumMotorForce: 2 - m_UseLimits: 0 - m_AngleLimits: - m_LowerAngle: 180 - m_UpperAngle: 359 ---- !u!1 &6095859833293776197 + m_CastShadows: 0 + m_ReceiveShadows: 0 + m_DynamicOccludee: 1 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RayTracingMode: 0 + m_RayTraceProcedural: 0 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_ReceiveGI: 1 + m_PreserveUVs: 0 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 1 + m_SelectedEditorRenderState: 0 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 1 + m_Sprite: {fileID: -6287787046888575383, guid: 0970daff6a8334275aa357cffa9fcf05, type: 3} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_FlipX: 0 + m_FlipY: 0 + m_DrawMode: 0 + m_Size: {x: 0.1, y: 0.11} + m_AdaptiveModeThreshold: 0.5 + m_SpriteTileMode: 0 + m_WasSpriteAssigned: 1 + m_MaskInteraction: 0 + m_SpriteSortPoint: 0 +--- !u!1 &2835159121523199489 GameObject: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} @@ -432,39 +418,36 @@ GameObject: m_PrefabAsset: {fileID: 0} serializedVersion: 6 m_Component: - - component: {fileID: 6095859833293776206} - - component: {fileID: 6095859833293776201} - - component: {fileID: 6095859833293776202} - - component: {fileID: 6095859833293776200} - - component: {fileID: 6095859833293776203} - m_Layer: 6 - m_Name: Segment 2 + - component: {fileID: 125789255435185866} + - component: {fileID: 3309077257564135105} + m_Layer: 0 + m_Name: Leg.Left m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 - m_IsActive: 0 ---- !u!4 &6095859833293776206 + m_IsActive: 1 +--- !u!4 &125789255435185866 Transform: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 6095859833293776197} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 2.6, z: 0} - m_LocalScale: {x: 0.5, y: 1, z: 1} + m_GameObject: {fileID: 2835159121523199489} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0.08, y: -0.18000007, z: 0} + m_LocalScale: {x: 4, y: 4, z: 1} m_Children: [] - m_Father: {fileID: 6095859834264611321} - m_RootOrder: 0 + m_Father: {fileID: 6095859833589646295} + m_RootOrder: 3 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!212 &6095859833293776201 +--- !u!212 &3309077257564135105 SpriteRenderer: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 6095859833293776197} + m_GameObject: {fileID: 2835159121523199489} m_Enabled: 1 m_CastShadows: 0 m_ReceiveShadows: 0 @@ -498,45 +481,803 @@ SpriteRenderer: m_SortingLayerID: 0 m_SortingLayer: 0 m_SortingOrder: 0 - m_Sprite: {fileID: 7482667652216324306, guid: 48e93eef0688c4a259cb0eddcd8661f7, type: 3} + m_Sprite: {fileID: -4709456396536258026, guid: 0970daff6a8334275aa357cffa9fcf05, type: 3} m_Color: {r: 1, g: 1, b: 1, a: 1} m_FlipX: 0 m_FlipY: 0 m_DrawMode: 0 - m_Size: {x: 1, y: 1} + m_Size: {x: 0.05, y: 0.11} m_AdaptiveModeThreshold: 0.5 m_SpriteTileMode: 0 m_WasSpriteAssigned: 1 m_MaskInteraction: 0 m_SpriteSortPoint: 0 ---- !u!50 &6095859833293776202 -Rigidbody2D: - serializedVersion: 4 +--- !u!1 &3531439111263992317 +GameObject: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 6095859833293776197} - m_BodyType: 0 - m_Simulated: 1 - m_UseFullKinematicContacts: 0 - m_UseAutoMass: 0 - m_Mass: 1 - m_LinearDrag: 0 - m_AngularDrag: 0.05 - m_GravityScale: 1 - m_Material: {fileID: 0} - m_Interpolate: 0 - m_SleepingMode: 1 + serializedVersion: 6 + m_Component: + - component: {fileID: 58003308918906493} + - component: {fileID: 2252780374825515412} + m_Layer: 0 + m_Name: Leg.Right + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &58003308918906493 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 3531439111263992317} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: -0.039999984, y: -0.18000007, z: 0} + m_LocalScale: {x: 4, y: 4, z: 1} + m_Children: [] + m_Father: {fileID: 6095859833589646295} + m_RootOrder: 4 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!212 &2252780374825515412 +SpriteRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 3531439111263992317} + m_Enabled: 1 + m_CastShadows: 0 + m_ReceiveShadows: 0 + m_DynamicOccludee: 1 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RayTracingMode: 0 + m_RayTraceProcedural: 0 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_ReceiveGI: 1 + m_PreserveUVs: 0 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 1 + m_SelectedEditorRenderState: 0 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 2 + m_Sprite: {fileID: -4709456396536258026, guid: 0970daff6a8334275aa357cffa9fcf05, type: 3} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_FlipX: 0 + m_FlipY: 0 + m_DrawMode: 0 + m_Size: {x: 0.05, y: 0.11} + m_AdaptiveModeThreshold: 0.5 + m_SpriteTileMode: 0 + m_WasSpriteAssigned: 1 + m_MaskInteraction: 0 + m_SpriteSortPoint: 0 +--- !u!1 &5020703169596630212 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 5614014003094209757} + - component: {fileID: 9153823608011860787} + m_Layer: 0 + m_Name: LeftArrow + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 0 +--- !u!4 &5614014003094209757 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 5020703169596630212} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: -0.9, y: 0, z: 0} + m_LocalScale: {x: 3, y: 3, z: 1} + m_Children: [] + m_Father: {fileID: 4383152884674024269} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!212 &9153823608011860787 +SpriteRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 5020703169596630212} + m_Enabled: 1 + m_CastShadows: 0 + m_ReceiveShadows: 0 + m_DynamicOccludee: 1 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RayTracingMode: 0 + m_RayTraceProcedural: 0 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_ReceiveGI: 1 + m_PreserveUVs: 0 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 1 + m_SelectedEditorRenderState: 0 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 + m_Sprite: {fileID: -5402412272178277761, guid: 4c50c736e129f4891bb6f68b964d823d, type: 3} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_FlipX: 0 + m_FlipY: 0 + m_DrawMode: 0 + m_Size: {x: 0.14, y: 0.14} + m_AdaptiveModeThreshold: 0.5 + m_SpriteTileMode: 0 + m_WasSpriteAssigned: 1 + m_MaskInteraction: 0 + m_SpriteSortPoint: 0 +--- !u!1 &5321565721314628342 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1077578955052460591} + - component: {fileID: 3996879309566229940} + m_Layer: 0 + m_Name: A + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 0 +--- !u!4 &1077578955052460591 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 5321565721314628342} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: -0.9, y: 0, z: 0} + m_LocalScale: {x: 3, y: 3, z: 1} + m_Children: [] + m_Father: {fileID: 6008469425673925979} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!212 &3996879309566229940 +SpriteRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 5321565721314628342} + m_Enabled: 1 + m_CastShadows: 0 + m_ReceiveShadows: 0 + m_DynamicOccludee: 1 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RayTracingMode: 0 + m_RayTraceProcedural: 0 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_ReceiveGI: 1 + m_PreserveUVs: 0 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 1 + m_SelectedEditorRenderState: 0 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 + m_Sprite: {fileID: 8894201953851282084, guid: 4c50c736e129f4891bb6f68b964d823d, type: 3} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_FlipX: 0 + m_FlipY: 0 + m_DrawMode: 0 + m_Size: {x: 0.14, y: 0.14} + m_AdaptiveModeThreshold: 0.5 + m_SpriteTileMode: 0 + m_WasSpriteAssigned: 1 + m_MaskInteraction: 0 + m_SpriteSortPoint: 0 +--- !u!1 &5566193515297851100 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 4089110449282737221} + - component: {fileID: 6152898792764514060} + m_Layer: 0 + m_Name: Head + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &4089110449282737221 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 5566193515297851100} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: -0.039999984, y: 0.26000023, z: 0} + m_LocalScale: {x: 4, y: 4, z: 1} + m_Children: [] + m_Father: {fileID: 6095859833589646295} + m_RootOrder: 1 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!212 &6152898792764514060 +SpriteRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 5566193515297851100} + m_Enabled: 1 + m_CastShadows: 0 + m_ReceiveShadows: 0 + m_DynamicOccludee: 1 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RayTracingMode: 0 + m_RayTraceProcedural: 0 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_ReceiveGI: 1 + m_PreserveUVs: 0 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 1 + m_SelectedEditorRenderState: 0 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 1 + m_Sprite: {fileID: -2311659948842064771, guid: 0970daff6a8334275aa357cffa9fcf05, type: 3} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_FlipX: 0 + m_FlipY: 0 + m_DrawMode: 0 + m_Size: {x: 0.14, y: 0.14} + m_AdaptiveModeThreshold: 0.5 + m_SpriteTileMode: 0 + m_WasSpriteAssigned: 1 + m_MaskInteraction: 0 + m_SpriteSortPoint: 0 +--- !u!1 &5886521033835613979 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 5036223590975315366} + - component: {fileID: 2059075423582568814} + m_Layer: 0 + m_Name: Leg.Right + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &5036223590975315366 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 5886521033835613979} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: -0.04, y: -0.44000006, z: 0} + m_LocalScale: {x: 4, y: 4, z: 1} + m_Children: [] + m_Father: {fileID: 6095859832867562448} + m_RootOrder: 4 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!212 &2059075423582568814 +SpriteRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 5886521033835613979} + m_Enabled: 1 + m_CastShadows: 0 + m_ReceiveShadows: 0 + m_DynamicOccludee: 1 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RayTracingMode: 0 + m_RayTraceProcedural: 0 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_ReceiveGI: 1 + m_PreserveUVs: 0 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 1 + m_SelectedEditorRenderState: 0 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 2 + m_Sprite: {fileID: 7364682651488144517, guid: 0970daff6a8334275aa357cffa9fcf05, type: 3} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_FlipX: 0 + m_FlipY: 0 + m_DrawMode: 0 + m_Size: {x: 0.05, y: 0.11} + m_AdaptiveModeThreshold: 0.5 + m_SpriteTileMode: 0 + m_WasSpriteAssigned: 1 + m_MaskInteraction: 0 + m_SpriteSortPoint: 0 +--- !u!1 &6095859832867562451 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 6095859832867562448} + - component: {fileID: 6967752935869289387} + - component: {fileID: 6095859832867562452} + - component: {fileID: 6095859832867562454} + - component: {fileID: 6095859832867562455} + m_Layer: 6 + m_Name: Segment + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &6095859832867562448 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 6095859832867562451} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 1.3, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: + - {fileID: 4383152884674024269} + - {fileID: 3736503195004337046} + - {fileID: 1950673337898001336} + - {fileID: 4617615456759737811} + - {fileID: 5036223590975315366} + - {fileID: 4926619347039342894} + - {fileID: 6584415796429336198} + m_Father: {fileID: 6095859834264611321} + m_RootOrder: 1 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!114 &6967752935869289387 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 6095859832867562451} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 99303295fe534f42863cd15bf22587f9, type: 3} + m_Name: + m_EditorClassIdentifier: + left: + keyCode: 276 + icon: {fileID: 5020703169596630212} + right: + keyCode: 275 + icon: {fileID: 476429766403681147} + forceOrigin: {x: 0, y: 0.5, z: 0} + height: 0 +--- !u!50 &6095859832867562452 +Rigidbody2D: + serializedVersion: 4 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 6095859832867562451} + m_BodyType: 0 + m_Simulated: 1 + m_UseFullKinematicContacts: 0 + m_UseAutoMass: 0 + m_Mass: 1 + m_LinearDrag: 0 + m_AngularDrag: 0.05 + m_GravityScale: 1 + m_Material: {fileID: 0} + m_Interpolate: 0 + m_SleepingMode: 1 + m_CollisionDetection: 0 + m_Constraints: 0 +--- !u!61 &6095859832867562454 +BoxCollider2D: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 6095859832867562451} + m_Enabled: 1 + m_Density: 1 + m_Material: {fileID: 0} + m_IsTrigger: 0 + m_UsedByEffector: 0 + m_UsedByComposite: 0 + m_Offset: {x: 0, y: 0} + m_SpriteTilingProperty: + border: {x: 0, y: 0, z: 0, w: 0} + pivot: {x: 0.5, y: 0.5} + oldSize: {x: 1, y: 1} + newSize: {x: 1, y: 1} + adaptiveTilingThreshold: 0.5 + drawMode: 0 + adaptiveTiling: 0 + m_AutoTiling: 0 + serializedVersion: 2 + m_Size: {x: 0.7, y: 1} + m_EdgeRadius: 0.05 +--- !u!233 &6095859832867562455 +HingeJoint2D: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 6095859832867562451} + m_Enabled: 1 + serializedVersion: 4 + m_EnableCollision: 1 + m_ConnectedRigidBody: {fileID: 6095859833589646292} + m_BreakForce: Infinity + m_BreakTorque: Infinity + m_AutoConfigureConnectedAnchor: 0 + m_Anchor: {x: 0, y: -0.6} + m_ConnectedAnchor: {x: 0, y: 0.6} + m_UseMotor: 1 + m_Motor: + m_MotorSpeed: 5 + m_MaximumMotorForce: 2 + m_UseLimits: 0 + m_AngleLimits: + m_LowerAngle: 180 + m_UpperAngle: 359 +--- !u!1 &6095859833293776197 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 6095859833293776206} + - component: {fileID: 6095859833293776201} + - component: {fileID: 6095859833293776202} + - component: {fileID: 6095859833293776200} + - component: {fileID: 6095859833293776203} + m_Layer: 6 + m_Name: Segment 2 + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 0 +--- !u!4 &6095859833293776206 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 6095859833293776197} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 2.6, z: 0} + m_LocalScale: {x: 0.5, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 6095859834264611321} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!212 &6095859833293776201 +SpriteRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 6095859833293776197} + m_Enabled: 1 + m_CastShadows: 0 + m_ReceiveShadows: 0 + m_DynamicOccludee: 1 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RayTracingMode: 0 + m_RayTraceProcedural: 0 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_ReceiveGI: 1 + m_PreserveUVs: 0 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 1 + m_SelectedEditorRenderState: 0 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 + m_Sprite: {fileID: 7482667652216324306, guid: 48e93eef0688c4a259cb0eddcd8661f7, type: 3} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_FlipX: 0 + m_FlipY: 0 + m_DrawMode: 0 + m_Size: {x: 1, y: 1} + m_AdaptiveModeThreshold: 0.5 + m_SpriteTileMode: 0 + m_WasSpriteAssigned: 1 + m_MaskInteraction: 0 + m_SpriteSortPoint: 0 +--- !u!50 &6095859833293776202 +Rigidbody2D: + serializedVersion: 4 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 6095859833293776197} + m_BodyType: 0 + m_Simulated: 1 + m_UseFullKinematicContacts: 0 + m_UseAutoMass: 0 + m_Mass: 1 + m_LinearDrag: 0 + m_AngularDrag: 0.05 + m_GravityScale: 1 + m_Material: {fileID: 0} + m_Interpolate: 0 + m_SleepingMode: 1 + m_CollisionDetection: 0 + m_Constraints: 0 +--- !u!61 &6095859833293776200 +BoxCollider2D: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 6095859833293776197} + m_Enabled: 1 + m_Density: 1 + m_Material: {fileID: 0} + m_IsTrigger: 0 + m_UsedByEffector: 0 + m_UsedByComposite: 0 + m_Offset: {x: 0, y: 0} + m_SpriteTilingProperty: + border: {x: 0, y: 0, z: 0, w: 0} + pivot: {x: 0.5, y: 0.5} + oldSize: {x: 1, y: 1} + newSize: {x: 1, y: 1} + adaptiveTilingThreshold: 0.5 + drawMode: 0 + adaptiveTiling: 0 + m_AutoTiling: 0 + serializedVersion: 2 + m_Size: {x: 1, y: 1} + m_EdgeRadius: 0.05 +--- !u!233 &6095859833293776203 +HingeJoint2D: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 6095859833293776197} + m_Enabled: 1 + serializedVersion: 4 + m_EnableCollision: 1 + m_ConnectedRigidBody: {fileID: 6095859832867562452} + m_BreakForce: Infinity + m_BreakTorque: Infinity + m_AutoConfigureConnectedAnchor: 0 + m_Anchor: {x: 0, y: -0.6} + m_ConnectedAnchor: {x: 0, y: 0.6} + m_UseMotor: 1 + m_Motor: + m_MotorSpeed: 5 + m_MaximumMotorForce: 2 + m_UseLimits: 0 + m_AngleLimits: + m_LowerAngle: 180 + m_UpperAngle: 359 +--- !u!1 &6095859833589646294 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 6095859833589646295} + - component: {fileID: 6063944130433637649} + - component: {fileID: 6095859833589646292} + - component: {fileID: 6095859833589646298} + m_Layer: 6 + m_Name: Segment.Root + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &6095859833589646295 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 6095859833589646294} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: + - {fileID: 6008469425673925979} + - {fileID: 4089110449282737221} + - {fileID: 262767061358356167} + - {fileID: 125789255435185866} + - {fileID: 58003308918906493} + - {fileID: 2429958341132927238} + - {fileID: 5588061831825342868} + m_Father: {fileID: 6095859834264611321} + m_RootOrder: 2 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!114 &6063944130433637649 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 6095859833589646294} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 99303295fe534f42863cd15bf22587f9, type: 3} + m_Name: + m_EditorClassIdentifier: + left: + keyCode: 97 + icon: {fileID: 5321565721314628342} + right: + keyCode: 100 + icon: {fileID: 7797841368364398355} + forceOrigin: {x: 0, y: -0.5, z: 0} + height: 0 +--- !u!50 &6095859833589646292 +Rigidbody2D: + serializedVersion: 4 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 6095859833589646294} + m_BodyType: 0 + m_Simulated: 1 + m_UseFullKinematicContacts: 0 + m_UseAutoMass: 0 + m_Mass: 1 + m_LinearDrag: 0 + m_AngularDrag: 0.05 + m_GravityScale: 1 + m_Material: {fileID: 0} + m_Interpolate: 0 + m_SleepingMode: 1 m_CollisionDetection: 0 m_Constraints: 0 ---- !u!61 &6095859833293776200 +--- !u!61 &6095859833589646298 BoxCollider2D: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 6095859833293776197} + m_GameObject: {fileID: 6095859833589646294} m_Enabled: 1 m_Density: 1 m_Material: {fileID: 0} @@ -554,33 +1295,260 @@ BoxCollider2D: adaptiveTiling: 0 m_AutoTiling: 0 serializedVersion: 2 - m_Size: {x: 1, y: 1} + m_Size: {x: 0.7, y: 1} m_EdgeRadius: 0.05 ---- !u!233 &6095859833293776203 -HingeJoint2D: +--- !u!1 &6095859834264611320 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 6095859834264611321} + - component: {fileID: 6095859834264611326} + m_Layer: 6 + m_Name: Player + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &6095859834264611321 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 6095859834264611320} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: -3.5, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: + - {fileID: 6095859833293776206} + - {fileID: 6095859832867562448} + - {fileID: 6095859833589646295} + m_Father: {fileID: 0} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!114 &6095859834264611326 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 6095859834264611320} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 261cc3206075846ebbd03b8896e7c733, type: 3} + m_Name: + m_EditorClassIdentifier: + segments: + - {fileID: 6063944130433637649} + - {fileID: 6967752935869289387} + sensitivity: 2 + verticalSensitivity: 2 + game: {fileID: 0} + controls: + grab: 119 + shoot: 273 +--- !u!1 &6791963013674012835 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 2429958341132927238} + - component: {fileID: 5735974347887600543} + m_Layer: 0 + m_Name: Arm.Left + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &2429958341132927238 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 6791963013674012835} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0.08, y: 0.22000027, z: 0} + m_LocalScale: {x: 4, y: 4, z: 1} + m_Children: [] + m_Father: {fileID: 6095859833589646295} + m_RootOrder: 5 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!212 &5735974347887600543 +SpriteRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 6791963013674012835} + m_Enabled: 1 + m_CastShadows: 0 + m_ReceiveShadows: 0 + m_DynamicOccludee: 1 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RayTracingMode: 0 + m_RayTraceProcedural: 0 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_ReceiveGI: 1 + m_PreserveUVs: 0 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 1 + m_SelectedEditorRenderState: 0 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 + m_Sprite: {fileID: -1182821291677670348, guid: 0970daff6a8334275aa357cffa9fcf05, type: 3} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_FlipX: 0 + m_FlipY: 0 + m_DrawMode: 0 + m_Size: {x: 0.04, y: 0.11} + m_AdaptiveModeThreshold: 0.5 + m_SpriteTileMode: 0 + m_WasSpriteAssigned: 1 + m_MaskInteraction: 0 + m_SpriteSortPoint: 0 +--- !u!1 &6895171853038836664 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 6008469425673925979} + m_Layer: 6 + m_Name: Icons + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &6008469425673925979 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 6895171853038836664} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: + - {fileID: 1077578955052460591} + - {fileID: 7020633736805051563} + m_Father: {fileID: 6095859833589646295} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1 &7797841368364398355 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 7020633736805051563} + - component: {fileID: 2015508652436829747} + m_Layer: 0 + m_Name: D + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 0 +--- !u!4 &7020633736805051563 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 7797841368364398355} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0.9, y: 0, z: 0} + m_LocalScale: {x: 3, y: 3, z: 1} + m_Children: [] + m_Father: {fileID: 6008469425673925979} + m_RootOrder: 1 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!212 &2015508652436829747 +SpriteRenderer: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 6095859833293776197} + m_GameObject: {fileID: 7797841368364398355} m_Enabled: 1 - serializedVersion: 4 - m_EnableCollision: 1 - m_ConnectedRigidBody: {fileID: 6095859832867562452} - m_BreakForce: Infinity - m_BreakTorque: Infinity - m_AutoConfigureConnectedAnchor: 0 - m_Anchor: {x: 0, y: -0.6} - m_ConnectedAnchor: {x: 0, y: 0.6} - m_UseMotor: 1 - m_Motor: - m_MotorSpeed: 5 - m_MaximumMotorForce: 2 - m_UseLimits: 0 - m_AngleLimits: - m_LowerAngle: 180 - m_UpperAngle: 359 ---- !u!1 &6095859833589646294 + m_CastShadows: 0 + m_ReceiveShadows: 0 + m_DynamicOccludee: 1 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RayTracingMode: 0 + m_RayTraceProcedural: 0 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_ReceiveGI: 1 + m_PreserveUVs: 0 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 1 + m_SelectedEditorRenderState: 0 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 + m_Sprite: {fileID: 7664807735657788756, guid: 4c50c736e129f4891bb6f68b964d823d, type: 3} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_FlipX: 0 + m_FlipY: 0 + m_DrawMode: 0 + m_Size: {x: 0.14, y: 0.14} + m_AdaptiveModeThreshold: 0.5 + m_SpriteTileMode: 0 + m_WasSpriteAssigned: 1 + m_MaskInteraction: 0 + m_SpriteSortPoint: 0 +--- !u!1 &8064893384836276184 GameObject: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} @@ -588,60 +1556,68 @@ GameObject: m_PrefabAsset: {fileID: 0} serializedVersion: 6 m_Component: - - component: {fileID: 6095859833589646295} - - component: {fileID: 6063944130433637649} - - component: {fileID: 6095859833589646293} - - component: {fileID: 6095859833589646292} - - component: {fileID: 6095859833589646298} + - component: {fileID: 4383152884674024269} m_Layer: 6 - m_Name: Segment.Root + m_Name: Icons m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 ---- !u!4 &6095859833589646295 +--- !u!4 &4383152884674024269 Transform: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 6095859833589646294} + m_GameObject: {fileID: 8064893384836276184} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 0.5, y: 1, z: 1} + m_LocalScale: {x: 1, y: 1, z: 1} m_Children: - - {fileID: 1077578955052460591} - - {fileID: 7020633736805051563} - m_Father: {fileID: 6095859834264611321} - m_RootOrder: 2 + - {fileID: 5614014003094209757} + - {fileID: 1299794603187148047} + m_Father: {fileID: 6095859832867562448} + m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &6063944130433637649 -MonoBehaviour: +--- !u!1 &8138150617172078869 +GameObject: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 6095859833589646294} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 99303295fe534f42863cd15bf22587f9, type: 3} - m_Name: - m_EditorClassIdentifier: - left: - keyCode: 97 - icon: {fileID: 5321565721314628342} - right: - keyCode: 100 - icon: {fileID: 7797841368364398355} - forceOrigin: {x: 0, y: -0.5, z: 0} ---- !u!212 &6095859833589646293 + serializedVersion: 6 + m_Component: + - component: {fileID: 3736503195004337046} + - component: {fileID: 2052168321038957812} + m_Layer: 0 + m_Name: Head + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &3736503195004337046 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 8138150617172078869} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: -0.04, y: 0, z: 0} + m_LocalScale: {x: 4, y: 4, z: 1} + m_Children: [] + m_Father: {fileID: 6095859832867562448} + m_RootOrder: 1 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!212 &2052168321038957812 SpriteRenderer: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 6095859833589646294} + m_GameObject: {fileID: 8138150617172078869} m_Enabled: 1 m_CastShadows: 0 m_ReceiveShadows: 0 @@ -674,66 +1650,19 @@ SpriteRenderer: m_LightmapParameters: {fileID: 0} m_SortingLayerID: 0 m_SortingLayer: 0 - m_SortingOrder: 0 - m_Sprite: {fileID: 7482667652216324306, guid: 48e93eef0688c4a259cb0eddcd8661f7, type: 3} + m_SortingOrder: 2 + m_Sprite: {fileID: -2311659948842064771, guid: 0970daff6a8334275aa357cffa9fcf05, type: 3} m_Color: {r: 1, g: 1, b: 1, a: 1} m_FlipX: 0 m_FlipY: 0 m_DrawMode: 0 - m_Size: {x: 1, y: 1} + m_Size: {x: 0.14, y: 0.14} m_AdaptiveModeThreshold: 0.5 m_SpriteTileMode: 0 m_WasSpriteAssigned: 1 m_MaskInteraction: 0 m_SpriteSortPoint: 0 ---- !u!50 &6095859833589646292 -Rigidbody2D: - serializedVersion: 4 - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 6095859833589646294} - m_BodyType: 0 - m_Simulated: 1 - m_UseFullKinematicContacts: 0 - m_UseAutoMass: 0 - m_Mass: 1 - m_LinearDrag: 0 - m_AngularDrag: 0.05 - m_GravityScale: 1 - m_Material: {fileID: 0} - m_Interpolate: 0 - m_SleepingMode: 1 - m_CollisionDetection: 0 - m_Constraints: 0 ---- !u!61 &6095859833589646298 -BoxCollider2D: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 6095859833589646294} - m_Enabled: 1 - m_Density: 1 - m_Material: {fileID: 0} - m_IsTrigger: 0 - m_UsedByEffector: 0 - m_UsedByComposite: 0 - m_Offset: {x: 0, y: 0} - m_SpriteTilingProperty: - border: {x: 0, y: 0, z: 0, w: 0} - pivot: {x: 0.5, y: 0.5} - oldSize: {x: 1, y: 1} - newSize: {x: 1, y: 1} - adaptiveTilingThreshold: 0.5 - drawMode: 0 - adaptiveTiling: 0 - m_AutoTiling: 0 - serializedVersion: 2 - m_Size: {x: 1, y: 1} - m_EdgeRadius: 0.05 ---- !u!1 &6095859834264611320 +--- !u!1 &8549221634172624537 GameObject: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} @@ -741,52 +1670,81 @@ GameObject: m_PrefabAsset: {fileID: 0} serializedVersion: 6 m_Component: - - component: {fileID: 6095859834264611321} - - component: {fileID: 6095859834264611326} - m_Layer: 6 - m_Name: Player + - component: {fileID: 4926619347039342894} + - component: {fileID: 5355852279616931264} + m_Layer: 0 + m_Name: Arm.Left m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 ---- !u!4 &6095859834264611321 +--- !u!4 &4926619347039342894 Transform: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 6095859834264611320} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: -3.5, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: - - {fileID: 6095859833293776206} - - {fileID: 6095859832867562448} - - {fileID: 6095859833589646295} - m_Father: {fileID: 0} - m_RootOrder: 0 + m_GameObject: {fileID: 8549221634172624537} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0.08, y: -0.03999996, z: 0} + m_LocalScale: {x: 4, y: 4, z: 1} + m_Children: [] + m_Father: {fileID: 6095859832867562448} + m_RootOrder: 5 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &6095859834264611326 -MonoBehaviour: +--- !u!212 &5355852279616931264 +SpriteRenderer: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 6095859834264611320} + m_GameObject: {fileID: 8549221634172624537} m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 261cc3206075846ebbd03b8896e7c733, type: 3} - m_Name: - m_EditorClassIdentifier: - segments: - - {fileID: 6063944130433637649} - - {fileID: 6967752935869289387} - sensitivity: 2 - verticalSensitivity: 2 - ballPrefab: {fileID: 2510945038599774573, guid: 2485406c33a7d4f5481ce936cc9b162e, type: 3} - ballSpeed: 500 ---- !u!1 &7797841368364398355 + m_CastShadows: 0 + m_ReceiveShadows: 0 + m_DynamicOccludee: 1 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RayTracingMode: 0 + m_RayTraceProcedural: 0 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_ReceiveGI: 1 + m_PreserveUVs: 0 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 1 + m_SelectedEditorRenderState: 0 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 + m_Sprite: {fileID: -1182821291677670348, guid: 0970daff6a8334275aa357cffa9fcf05, type: 3} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_FlipX: 0 + m_FlipY: 0 + m_DrawMode: 0 + m_Size: {x: 0.04, y: 0.11} + m_AdaptiveModeThreshold: 0.5 + m_SpriteTileMode: 0 + m_WasSpriteAssigned: 1 + m_MaskInteraction: 0 + m_SpriteSortPoint: 0 +--- !u!1 &8845918641001187994 GameObject: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} @@ -794,36 +1752,36 @@ GameObject: m_PrefabAsset: {fileID: 0} serializedVersion: 6 m_Component: - - component: {fileID: 7020633736805051563} - - component: {fileID: 2015508652436829747} + - component: {fileID: 6584415796429336198} + - component: {fileID: 1559589370631777136} m_Layer: 0 - m_Name: D + m_Name: Arm.Right m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 - m_IsActive: 0 ---- !u!4 &7020633736805051563 + m_IsActive: 1 +--- !u!4 &6584415796429336198 Transform: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 7797841368364398355} + m_GameObject: {fileID: 8845918641001187994} m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 1.5, y: 0, z: 0} - m_LocalScale: {x: 6, y: 3, z: 1} + m_LocalPosition: {x: -0.16, y: -0.03999996, z: 0} + m_LocalScale: {x: 4, y: 4, z: 1} m_Children: [] - m_Father: {fileID: 6095859833589646295} - m_RootOrder: 1 + m_Father: {fileID: 6095859832867562448} + m_RootOrder: 6 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!212 &2015508652436829747 +--- !u!212 &1559589370631777136 SpriteRenderer: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 7797841368364398355} + m_GameObject: {fileID: 8845918641001187994} m_Enabled: 1 m_CastShadows: 0 m_ReceiveShadows: 0 @@ -856,13 +1814,13 @@ SpriteRenderer: m_LightmapParameters: {fileID: 0} m_SortingLayerID: 0 m_SortingLayer: 0 - m_SortingOrder: 0 - m_Sprite: {fileID: 7664807735657788756, guid: 4c50c736e129f4891bb6f68b964d823d, type: 3} + m_SortingOrder: 2 + m_Sprite: {fileID: -1182821291677670348, guid: 0970daff6a8334275aa357cffa9fcf05, type: 3} m_Color: {r: 1, g: 1, b: 1, a: 1} m_FlipX: 0 m_FlipY: 0 m_DrawMode: 0 - m_Size: {x: 0.14, y: 0.14} + m_Size: {x: 0.04, y: 0.11} m_AdaptiveModeThreshold: 0.5 m_SpriteTileMode: 0 m_WasSpriteAssigned: 1 diff --git a/Assets/Scenes/Main.unity b/Assets/Scenes/Main.unity index 9cef90d..e44b331 100644 --- a/Assets/Scenes/Main.unity +++ b/Assets/Scenes/Main.unity @@ -123,6 +123,38 @@ NavMeshSettings: debug: m_Flags: 0 m_NavMeshData: {fileID: 0} +--- !u!1 &244382785 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 244382786} + m_Layer: 0 + m_Name: Controllers + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &244382786 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 244382785} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0.10864201, y: 3.1138847, z: -134.58575} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: + - {fileID: 1174357919} + - {fileID: 1189511746} + m_Father: {fileID: 0} + m_RootOrder: 2 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!4 &288486053 stripped Transform: m_CorrespondingSourceObject: {fileID: 6095859832867562448, guid: c64ad9b908cb44602b3d13a74aef751f, type: 3} @@ -159,6 +191,11 @@ BoxCollider2D: serializedVersion: 2 m_Size: {x: 5.63, y: 0.13} m_EdgeRadius: 0 +--- !u!4 &293352248 stripped +Transform: + m_CorrespondingSourceObject: {fileID: 6554888089662917207, guid: be9aa59b997c243a2bf4287cb2129092, type: 3} + m_PrefabInstance: {fileID: 6554888089409436015} + m_PrefabAsset: {fileID: 0} --- !u!1 &519420028 GameObject: m_ObjectHideFlags: 0 @@ -256,13 +293,86 @@ Transform: m_Father: {fileID: 0} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1001 &984947992 +--- !u!4 &610617746 stripped +Transform: + m_CorrespondingSourceObject: {fileID: 2106494524751008833, guid: b2939f2eae52d074b81e81fccdde88f9, type: 3} + m_PrefabInstance: {fileID: 1402386184} + m_PrefabAsset: {fileID: 0} +--- !u!1001 &700993592 PrefabInstance: m_ObjectHideFlags: 0 serializedVersion: 2 m_Modification: m_TransformParent: {fileID: 0} m_Modifications: + - target: {fileID: 4042332068071005264, guid: 2485406c33a7d4f5481ce936cc9b162e, type: 3} + propertyPath: m_Name + value: Ball + objectReference: {fileID: 0} + - target: {fileID: 5143626018439341592, guid: 2485406c33a7d4f5481ce936cc9b162e, type: 3} + propertyPath: m_RootOrder + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 5143626018439341592, guid: 2485406c33a7d4f5481ce936cc9b162e, type: 3} + propertyPath: m_LocalPosition.x + value: 3.5 + objectReference: {fileID: 0} + - target: {fileID: 5143626018439341592, guid: 2485406c33a7d4f5481ce936cc9b162e, type: 3} + propertyPath: m_LocalPosition.y + value: 5.5 + objectReference: {fileID: 0} + - target: {fileID: 5143626018439341592, guid: 2485406c33a7d4f5481ce936cc9b162e, type: 3} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 5143626018439341592, guid: 2485406c33a7d4f5481ce936cc9b162e, type: 3} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 5143626018439341592, guid: 2485406c33a7d4f5481ce936cc9b162e, type: 3} + propertyPath: m_LocalRotation.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 5143626018439341592, guid: 2485406c33a7d4f5481ce936cc9b162e, type: 3} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 5143626018439341592, guid: 2485406c33a7d4f5481ce936cc9b162e, type: 3} + propertyPath: m_LocalRotation.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 5143626018439341592, guid: 2485406c33a7d4f5481ce936cc9b162e, type: 3} + propertyPath: m_LocalEulerAnglesHint.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 5143626018439341592, guid: 2485406c33a7d4f5481ce936cc9b162e, type: 3} + propertyPath: m_LocalEulerAnglesHint.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 5143626018439341592, guid: 2485406c33a7d4f5481ce936cc9b162e, type: 3} + propertyPath: m_LocalEulerAnglesHint.z + value: 0 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_SourcePrefab: {fileID: 100100000, guid: 2485406c33a7d4f5481ce936cc9b162e, type: 3} +--- !u!114 &707826158 stripped +MonoBehaviour: + m_CorrespondingSourceObject: {fileID: 6267610020350316690, guid: 2485406c33a7d4f5481ce936cc9b162e, type: 3} + m_PrefabInstance: {fileID: 700993592} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 71c18c0662ec4384bf64aae1dc016093, type: 3} + m_Name: + m_EditorClassIdentifier: +--- !u!1001 &984947992 +PrefabInstance: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 244382786} + m_Modifications: - target: {fileID: 6095859834264611320, guid: c64ad9b908cb44602b3d13a74aef751f, type: 3} propertyPath: m_Name value: Player @@ -273,15 +383,15 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 6095859834264611321, guid: c64ad9b908cb44602b3d13a74aef751f, type: 3} propertyPath: m_LocalPosition.x - value: 0 + value: -0.10864201 objectReference: {fileID: 0} - target: {fileID: 6095859834264611321, guid: c64ad9b908cb44602b3d13a74aef751f, type: 3} propertyPath: m_LocalPosition.y - value: 3 + value: -0.11388469 objectReference: {fileID: 0} - target: {fileID: 6095859834264611321, guid: c64ad9b908cb44602b3d13a74aef751f, type: 3} propertyPath: m_LocalPosition.z - value: 0 + value: 134.58575 objectReference: {fileID: 0} - target: {fileID: 6095859834264611321, guid: c64ad9b908cb44602b3d13a74aef751f, type: 3} propertyPath: m_LocalRotation.w @@ -289,15 +399,15 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 6095859834264611321, guid: c64ad9b908cb44602b3d13a74aef751f, type: 3} propertyPath: m_LocalRotation.x - value: 0 + value: -0 objectReference: {fileID: 0} - target: {fileID: 6095859834264611321, guid: c64ad9b908cb44602b3d13a74aef751f, type: 3} propertyPath: m_LocalRotation.y - value: 0 + value: -0 objectReference: {fileID: 0} - target: {fileID: 6095859834264611321, guid: c64ad9b908cb44602b3d13a74aef751f, type: 3} propertyPath: m_LocalRotation.z - value: 0 + value: -0 objectReference: {fileID: 0} - target: {fileID: 6095859834264611321, guid: c64ad9b908cb44602b3d13a74aef751f, type: 3} propertyPath: m_LocalEulerAnglesHint.x @@ -311,6 +421,10 @@ PrefabInstance: propertyPath: m_LocalEulerAnglesHint.z value: 0 objectReference: {fileID: 0} + - target: {fileID: 6095859834264611326, guid: c64ad9b908cb44602b3d13a74aef751f, type: 3} + propertyPath: game + value: + objectReference: {fileID: 1174357920} - target: {fileID: 6095859834264611326, guid: c64ad9b908cb44602b3d13a74aef751f, type: 3} propertyPath: sensitivity value: 2 @@ -325,16 +439,70 @@ PrefabInstance: objectReference: {fileID: 0} m_RemovedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: c64ad9b908cb44602b3d13a74aef751f, type: 3} +--- !u!4 &1116995016 stripped +Transform: + m_CorrespondingSourceObject: {fileID: 2106494524751008833, guid: b2939f2eae52d074b81e81fccdde88f9, type: 3} + m_PrefabInstance: {fileID: 1354192741} + m_PrefabAsset: {fileID: 0} +--- !u!1 &1174357918 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1174357919} + - component: {fileID: 1174357920} + m_Layer: 0 + m_Name: Game + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &1174357919 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1174357918} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 244382786} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!114 &1174357920 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1174357918} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 6639705c6da14aab845bd87d3d8fbf38, type: 3} + m_Name: + m_EditorClassIdentifier: + ball: {fileID: 707826158} +--- !u!4 &1189511746 stripped +Transform: + m_CorrespondingSourceObject: {fileID: 6095859834264611321, guid: c64ad9b908cb44602b3d13a74aef751f, type: 3} + m_PrefabInstance: {fileID: 984947992} + m_PrefabAsset: {fileID: 0} --- !u!1001 &1354192741 PrefabInstance: m_ObjectHideFlags: 0 serializedVersion: 2 m_Modification: - m_TransformParent: {fileID: 0} + m_TransformParent: {fileID: 1508236595} m_Modifications: - target: {fileID: 2106494524751008833, guid: b2939f2eae52d074b81e81fccdde88f9, type: 3} propertyPath: m_RootOrder - value: 4 + value: 2 objectReference: {fileID: 0} - target: {fileID: 2106494524751008833, guid: b2939f2eae52d074b81e81fccdde88f9, type: 3} propertyPath: m_LocalScale.x @@ -342,15 +510,15 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 2106494524751008833, guid: b2939f2eae52d074b81e81fccdde88f9, type: 3} propertyPath: m_LocalPosition.x - value: -12.75 + value: -12.858642 objectReference: {fileID: 0} - target: {fileID: 2106494524751008833, guid: b2939f2eae52d074b81e81fccdde88f9, type: 3} propertyPath: m_LocalPosition.y - value: 5.5 + value: 2.3861153 objectReference: {fileID: 0} - target: {fileID: 2106494524751008833, guid: b2939f2eae52d074b81e81fccdde88f9, type: 3} propertyPath: m_LocalPosition.z - value: 0 + value: 134.58575 objectReference: {fileID: 0} - target: {fileID: 2106494524751008833, guid: b2939f2eae52d074b81e81fccdde88f9, type: 3} propertyPath: m_LocalRotation.w @@ -358,15 +526,15 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 2106494524751008833, guid: b2939f2eae52d074b81e81fccdde88f9, type: 3} propertyPath: m_LocalRotation.x - value: 0 + value: -0 objectReference: {fileID: 0} - target: {fileID: 2106494524751008833, guid: b2939f2eae52d074b81e81fccdde88f9, type: 3} propertyPath: m_LocalRotation.y - value: 0 + value: -0 objectReference: {fileID: 0} - target: {fileID: 2106494524751008833, guid: b2939f2eae52d074b81e81fccdde88f9, type: 3} propertyPath: m_LocalRotation.z - value: 0 + value: -0 objectReference: {fileID: 0} - target: {fileID: 2106494524751008833, guid: b2939f2eae52d074b81e81fccdde88f9, type: 3} propertyPath: m_LocalEulerAnglesHint.x @@ -382,7 +550,7 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 2106494524751008836, guid: b2939f2eae52d074b81e81fccdde88f9, type: 3} propertyPath: m_Name - value: Hoop (1) + value: Hoop.Enemy objectReference: {fileID: 0} m_RemovedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: b2939f2eae52d074b81e81fccdde88f9, type: 3} @@ -391,23 +559,23 @@ PrefabInstance: m_ObjectHideFlags: 0 serializedVersion: 2 m_Modification: - m_TransformParent: {fileID: 0} + m_TransformParent: {fileID: 1508236595} m_Modifications: - target: {fileID: 2106494524751008833, guid: b2939f2eae52d074b81e81fccdde88f9, type: 3} propertyPath: m_RootOrder - value: 3 + value: 1 objectReference: {fileID: 0} - target: {fileID: 2106494524751008833, guid: b2939f2eae52d074b81e81fccdde88f9, type: 3} propertyPath: m_LocalPosition.x - value: 12.75 + value: 12.641358 objectReference: {fileID: 0} - target: {fileID: 2106494524751008833, guid: b2939f2eae52d074b81e81fccdde88f9, type: 3} propertyPath: m_LocalPosition.y - value: 5.5 + value: 2.3861153 objectReference: {fileID: 0} - target: {fileID: 2106494524751008833, guid: b2939f2eae52d074b81e81fccdde88f9, type: 3} propertyPath: m_LocalPosition.z - value: 0 + value: 134.58575 objectReference: {fileID: 0} - target: {fileID: 2106494524751008833, guid: b2939f2eae52d074b81e81fccdde88f9, type: 3} propertyPath: m_LocalRotation.w @@ -415,15 +583,15 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 2106494524751008833, guid: b2939f2eae52d074b81e81fccdde88f9, type: 3} propertyPath: m_LocalRotation.x - value: 0 + value: -0 objectReference: {fileID: 0} - target: {fileID: 2106494524751008833, guid: b2939f2eae52d074b81e81fccdde88f9, type: 3} propertyPath: m_LocalRotation.y - value: 0 + value: -0 objectReference: {fileID: 0} - target: {fileID: 2106494524751008833, guid: b2939f2eae52d074b81e81fccdde88f9, type: 3} propertyPath: m_LocalRotation.z - value: 0 + value: -0 objectReference: {fileID: 0} - target: {fileID: 2106494524751008833, guid: b2939f2eae52d074b81e81fccdde88f9, type: 3} propertyPath: m_LocalEulerAnglesHint.x @@ -439,32 +607,65 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 2106494524751008836, guid: b2939f2eae52d074b81e81fccdde88f9, type: 3} propertyPath: m_Name - value: Hoop + value: Hoop.Player objectReference: {fileID: 0} m_RemovedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: b2939f2eae52d074b81e81fccdde88f9, type: 3} +--- !u!1 &1508236594 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1508236595} + m_Layer: 0 + m_Name: Environment + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &1508236595 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1508236594} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0.10864201, y: 3.1138847, z: -134.58575} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: + - {fileID: 293352248} + - {fileID: 610617746} + - {fileID: 1116995016} + m_Father: {fileID: 0} + m_RootOrder: 3 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!1001 &6554888089409436015 PrefabInstance: m_ObjectHideFlags: 0 serializedVersion: 2 m_Modification: - m_TransformParent: {fileID: 0} + m_TransformParent: {fileID: 1508236595} m_Modifications: - target: {fileID: 6554888089662917207, guid: be9aa59b997c243a2bf4287cb2129092, type: 3} propertyPath: m_RootOrder - value: 2 + value: 0 objectReference: {fileID: 0} - target: {fileID: 6554888089662917207, guid: be9aa59b997c243a2bf4287cb2129092, type: 3} propertyPath: m_LocalPosition.x - value: -1.92 + value: -2.028642 objectReference: {fileID: 0} - target: {fileID: 6554888089662917207, guid: be9aa59b997c243a2bf4287cb2129092, type: 3} propertyPath: m_LocalPosition.y - value: 0 + value: -3.1138847 objectReference: {fileID: 0} - target: {fileID: 6554888089662917207, guid: be9aa59b997c243a2bf4287cb2129092, type: 3} propertyPath: m_LocalPosition.z - value: 0 + value: 134.58575 objectReference: {fileID: 0} - target: {fileID: 6554888089662917207, guid: be9aa59b997c243a2bf4287cb2129092, type: 3} propertyPath: m_LocalRotation.w @@ -472,15 +673,15 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 6554888089662917207, guid: be9aa59b997c243a2bf4287cb2129092, type: 3} propertyPath: m_LocalRotation.x - value: 0 + value: -0 objectReference: {fileID: 0} - target: {fileID: 6554888089662917207, guid: be9aa59b997c243a2bf4287cb2129092, type: 3} propertyPath: m_LocalRotation.y - value: 0 + value: -0 objectReference: {fileID: 0} - target: {fileID: 6554888089662917207, guid: be9aa59b997c243a2bf4287cb2129092, type: 3} propertyPath: m_LocalRotation.z - value: 0 + value: -0 objectReference: {fileID: 0} - target: {fileID: 6554888089662917207, guid: be9aa59b997c243a2bf4287cb2129092, type: 3} propertyPath: m_LocalEulerAnglesHint.x diff --git a/Assets/Scripts/Controllers/Ball.cs b/Assets/Scripts/Controllers/Ball.cs new file mode 100644 index 0000000..b63c928 --- /dev/null +++ b/Assets/Scripts/Controllers/Ball.cs @@ -0,0 +1,24 @@ +using System; +using UnityEngine; + +namespace Controllers +{ + [RequireComponent(typeof(Rigidbody2D))] + [RequireComponent(typeof(CircleCollider2D))] + public class Ball : MonoBehaviour + { + internal GameController controller; + + [SerializeField] private float shotForce; + + private void OnCollisionEnter2D(Collision2D other) + { + controller.BallDropped(); + } + + public void Shoot(Transform playerTransform) + { + GetComponent().AddForce((Vector2)(playerTransform.forward + playerTransform.up) * shotForce); + } + } +} diff --git a/Assets/Scripts/Controllers/Ball.cs.meta b/Assets/Scripts/Controllers/Ball.cs.meta new file mode 100644 index 0000000..d33ab19 --- /dev/null +++ b/Assets/Scripts/Controllers/Ball.cs.meta @@ -0,0 +1,3 @@ +fileFormatVersion: 2 +guid: 71c18c0662ec4384bf64aae1dc016093 +timeCreated: 1623503837 \ No newline at end of file diff --git a/Assets/Scripts/Controllers/GameController.cs b/Assets/Scripts/Controllers/GameController.cs new file mode 100644 index 0000000..2ae5f21 --- /dev/null +++ b/Assets/Scripts/Controllers/GameController.cs @@ -0,0 +1,113 @@ +using System; +using UnityEngine; + +namespace Controllers +{ + /// + /// The controller for the basketball-game logic. + /// + public class GameController : MonoBehaviour + { + private State state = State.JumpBall; // A basketball game always starts with a jump ball. + + public Player player; + public Player enemy; + + /// + /// The single ball for the game. + /// + [SerializeField] private Ball ball; + + private void Awake() + { + player = new Player { isEnemy = false, controller = this }; + enemy = new Player { isEnemy = true, controller = this }; + ball.controller = this; + } + + public struct Player + { + /// + /// Whether this player is the AI-enemy. + /// + internal bool isEnemy; + + /// + /// A back-reference to the containing GameController. + /// + internal GameController controller; + + private State dribble => isEnemy ? State.EnemyDribble : State.PlayerDribble; + private State shoot => isEnemy ? State.EnemyShoot : State.PlayerShoot; + + /// + /// When dribbling, move the ball with the player. + /// + /// The position of the hand dribbling the ball. + public void Move(Vector2 handPosition) + { + if (controller.state == (isEnemy ? State.EnemyDribble : State.PlayerDribble)) // Make sure they're dribbling. + controller.ball.transform.position = handPosition; // TODO: Make this perform a dribbling motion, otherwise it looks like they're travelling. + } + + /// + /// Grab the ball if possible given the current game state. + /// + /// The position of the hand to attempt grabbing from. + /// Whether or not the ball was able to be picked up. + public bool GrabBall(Vector2 handPosition) + { + // Don't allow the ball to be picked up if someone shot it. Also don't try picking it up if we're already holding it. + if (controller.state.IsShot() || controller.state == dribble) return false; + + // Make sure its within their grab area. + if (Vector2.Distance(controller.ball.transform.position, handPosition) > 0.75f) return false; + + controller.state = dribble; + Move(handPosition); + return true; + } + + /// + /// Shoot the ball if possible. + /// + /// + /// Whether or not the ball was shot + public bool Shoot(Transform playerTransform) + { + if (controller.state != dribble) return false; // We must be dribbling the ball to shoot it. + controller.state = shoot; + controller.ball.Shoot(playerTransform); + return true; + } + } + + internal void BallDropped() + { + state = State.Idle; + } + + internal enum State + { + Idle, + JumpBall, + PlayerDribble, + PlayerShoot, + EnemyDribble, + EnemyShoot, + } + } + + internal static class GameControllerStateExtensions + { + internal static bool IsShot(this GameController.State state) + { + return state == GameController.State.EnemyShoot || state == GameController.State.PlayerShoot; + } + + internal static bool IsDribble(this GameController.State state) + { + return state == GameController.State.EnemyDribble || state == GameController.State.PlayerDribble; + } + } +} diff --git a/Assets/Scripts/Controllers/GameController.cs.meta b/Assets/Scripts/Controllers/GameController.cs.meta new file mode 100644 index 0000000..90c96aa --- /dev/null +++ b/Assets/Scripts/Controllers/GameController.cs.meta @@ -0,0 +1,3 @@ +fileFormatVersion: 2 +guid: 6639705c6da14aab845bd87d3d8fbf38 +timeCreated: 1623502380 \ No newline at end of file diff --git a/Assets/Scripts/Controllers/Player/PlayerController.cs b/Assets/Scripts/Controllers/Player/PlayerController.cs index c5cfc3d..e0de738 100644 --- a/Assets/Scripts/Controllers/Player/PlayerController.cs +++ b/Assets/Scripts/Controllers/Player/PlayerController.cs @@ -1,3 +1,4 @@ +using System; using System.Linq; using Controllers.Player; using UnityEngine; @@ -10,15 +11,18 @@ namespace Controllers.Player [SerializeField] private float sensitivity; [SerializeField] private float verticalSensitivity; - [SerializeField] private Rigidbody2D ballPrefab; - [SerializeField] private float ballSpeed; + [SerializeField] private GameController game; + [SerializeField] private Controls controls; + private void Update() { + // Loop over each body segment and control it. for (var i = 0; i < segments.Length; i++) { var segment = segments[i]; var isRoot = i == 0; + var isTop = i == segments.Length - 1; // Update icons foreach (var control in new[] {segment.left, segment.right}) @@ -31,45 +35,34 @@ namespace Controllers.Player // Add forces if (Input.GetKey(segment.left.keyCode)) - segment.Rigidbody.AddForceAtPosition(Vector2.left * (sensitivity * (isRoot ? 2f : 1f)) + Vector2.up * (verticalSensitivity * (isRoot ? -1f : 1f)), segment.transform.position + (segment.Sprite.bounds.size.y * segment.forceOrigin)); + segment.Rigidbody.AddForceAtPosition(Vector2.left * (sensitivity * (isRoot ? 2f : 1f)) + Vector2.up * (verticalSensitivity * (isRoot ? -1f : 1f)), segment.transform.position + (segment.height * segment.forceOrigin)); if (Input.GetKey(segment.right.keyCode)) - segment.Rigidbody.AddForceAtPosition(Vector2.right * (sensitivity * (isRoot ? 2f : 1f)) + Vector2.up * (verticalSensitivity * (isRoot ? -1f : 1f)), segment.transform.position + (segment.Sprite.bounds.size.y * segment.forceOrigin)); - } + segment.Rigidbody.AddForceAtPosition(Vector2.right * (sensitivity * (isRoot ? 2f : 1f)) + Vector2.up * (verticalSensitivity * (isRoot ? -1f : 1f)), segment.transform.position + (segment.height * segment.forceOrigin)); - // if (Input.GetKey(KeyCode.D)) - // { - // segments[0].AddForceAtPosition(Vector2.right * sensitivity, (Vector2)segments[0].transform.position - Vector2.up * 0.5f); - // } - // else if (Input.GetKey(KeyCode.A)) - // { - // segments[0].AddForceAtPosition(Vector2.left * sensitivity, (Vector2)segments[0].transform.position - Vector2.up * 0.5f); - // } - // - // if (Input.GetKey(KeyCode.L)) - // { - // segments[1].AddForceAtPosition(Vector2.right * sensitivity, (Vector2)segments[1].transform.position + Vector2.up * 0.5f); - // } - // else if (Input.GetKey(KeyCode.J)) - // { - // segments[1].AddForceAtPosition(Vector2.left * sensitivity, (Vector2)segments[1].transform.position + Vector2.up * 0.5f); - // } - // - // if (Input.GetKey(KeyCode.RightArrow)) - // { - // segments[2].AddForceAtPosition(Vector2.right * sensitivity, (Vector2)segments[2].transform.position + Vector2.up * 0.5f); - // } - // else if (Input.GetKey(KeyCode.LeftArrow)) - // { - // segments[2].AddForceAtPosition(Vector2.left * sensitivity, (Vector2)segments[2].transform.position + Vector2.up * 0.5f); - // } - // - if (Input.GetKeyDown(KeyCode.Space)) + if (isTop) + game.player.Move(segment.transform.position); + } + + // Try grabbing the ball if pressed. + if (Input.GetKeyDown(controls.grab)) { - var ball = Instantiate(ballPrefab); - var lastSegment = segments.Last(); - ball.transform.position = lastSegment.transform.position; - ball.AddForce((lastSegment.transform.right + lastSegment.transform.up) * ballSpeed); + // Try grabbing at each segment, and then the segment can pass it up to the top guy. + foreach (var segment in segments) + { + if (game.player.GrabBall(segment.transform.position)) break; // Stop after we successfully grab. + } } + + // Try shooting the ball if pressed. + if (Input.GetKeyDown(controls.shoot)) + game.player.Shoot(segments.Last().transform); + } + + [Serializable] + private struct Controls + { + [SerializeField] internal KeyCode grab; + [SerializeField] internal KeyCode shoot; } } } diff --git a/Assets/Scripts/Controllers/Player/PlayerSegment.cs b/Assets/Scripts/Controllers/Player/PlayerSegment.cs index 6306201..b4b3267 100644 --- a/Assets/Scripts/Controllers/Player/PlayerSegment.cs +++ b/Assets/Scripts/Controllers/Player/PlayerSegment.cs @@ -4,19 +4,17 @@ using UnityEngine; namespace Controllers.Player { [RequireComponent(typeof(Rigidbody2D))] - [RequireComponent(typeof(SpriteRenderer))] public class PlayerSegment : MonoBehaviour { [SerializeField] public Control left; [SerializeField] public Control right; - [SerializeField] public Vector3 forceOrigin; + [SerializeField] public Vector3 forceOrigin; + + [SerializeField] public float height; public Rigidbody2D Rigidbody => _rigidbody != null ? _rigidbody : _rigidbody = GetComponent(); private Rigidbody2D _rigidbody; - - public SpriteRenderer Sprite => _sprite != null ? _sprite : _sprite = GetComponent(); - private SpriteRenderer _sprite; } [Serializable] diff --git a/Assets/Sprites/Player.png b/Assets/Sprites/Player.png new file mode 100644 index 0000000000000000000000000000000000000000..826df51b21ad533578e5cc4605ea79b4d6f0c9d0 GIT binary patch literal 654 zcmeAS@N?(olHy`uVBq!ia0vp^4j|0I1|(Ny7T#lEU<&bcaSW-5dpmu-AG4#tvF&1w zn#&xO1VlwuCwyRNVL8Yw(6l0_=>@ldiD#@TQw5U_f5Rdbb-@gl^%tI;$g!HeH}!p< z^Og%rP>S}(tkLljk1`9tw z-h1i9^XvYvKD$1f{P4mTac*hjQ%0YSq;KC>e>`)iJkJ~JEStXh?digsUwrfZX7Ol_ z<^Ip=1?6AfePX@u7an1JiE)L{c}pe^F@~)IPCN{~v(G&*tC4IdSa-es{<7_xa~rpD zD%jt6KlARpFrlleEa8^>54~YoW%s{NwU?noud)61>9dRrBwGZIi7yY-nAjyUjhTJp zQ)WfAz!|4^o)Ny?JgFbw&##>WdfOpUrZh+9z6X1K)!F z3A!sUE(^YXja6U{SL(Gs+3sF_X6}X~@po-pWd)i8*$&tX{_!=q!z{#j8H*|ER7_Fs2&5b_sz{qMmMhyOEUXRq2dpWUm6WdhTL0Ozhic7@R3MXs_6 z3)@5%^Es?q=F)BD;KZxxCfg9=+bLGs&>|JoW5uv?mXPi%22Rr@5~U15rm9g_7=^Mt z3|}!U$@1E=f?4ItgrqBs9#^Mi1hRXqP&~SVdBQ5qi;MV3wBY|eM*Ep7-#IpSB?khN P8H1;*pUXO@geC?6_jMQa literal 0 HcmV?d00001 diff --git a/Assets/Sprites/Player.png.meta b/Assets/Sprites/Player.png.meta new file mode 100644 index 0000000..a831d59 --- /dev/null +++ b/Assets/Sprites/Player.png.meta @@ -0,0 +1,240 @@ +fileFormatVersion: 2 +guid: 0970daff6a8334275aa357cffa9fcf05 +TextureImporter: + internalIDToNameTable: + - first: + 213: -2311659948842064771 + second: Head + - first: + 213: 7364682651488144517 + second: Leg.Sitting + - first: + 213: -6287787046888575383 + second: Body + - first: + 213: -1182821291677670348 + second: Arm + - first: + 213: -4709456396536258026 + second: Leg + externalObjects: {} + serializedVersion: 11 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 0 + aniso: -1 + mipBias: -100 + wrapU: 1 + wrapV: 1 + wrapW: 1 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 2 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 8 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Android + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: + - serializedVersion: 2 + name: Head + rect: + serializedVersion: 2 + x: 0 + y: 50 + width: 14 + height: 14 + alignment: 7 + pivot: {x: 0.5, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + bones: [] + spriteID: d7465c336855befd0800000000000000 + internalID: -2311659948842064771 + vertices: [] + indices: + edges: [] + weights: [] + - serializedVersion: 2 + name: Leg.Sitting + rect: + serializedVersion: 2 + x: 33 + y: 56 + width: 10 + height: 8 + alignment: 9 + pivot: {x: 0.2, y: 0.75} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + bones: [] + spriteID: 58cce6d0adb943660800000000000000 + internalID: 7364682651488144517 + vertices: [] + indices: + edges: [] + weights: [] + - serializedVersion: 2 + name: Body + rect: + serializedVersion: 2 + x: 14 + y: 53 + width: 10 + height: 11 + alignment: 6 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + bones: [] + spriteID: 96e67e6befa4db8a0800000000000000 + internalID: -6287787046888575383 + vertices: [] + indices: + edges: [] + weights: [] + - serializedVersion: 2 + name: Arm + rect: + serializedVersion: 2 + x: 24 + y: 53 + width: 4 + height: 11 + alignment: 9 + pivot: {x: 0.5, y: 0.8181818} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + bones: [] + spriteID: 434a8c45d46c59fe0800000000000000 + internalID: -1182821291677670348 + vertices: [] + indices: + edges: [] + weights: [] + - serializedVersion: 2 + name: Leg + rect: + serializedVersion: 2 + x: 28 + y: 53 + width: 5 + height: 11 + alignment: 9 + pivot: {x: 0.4, y: 0.8181818} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + bones: [] + spriteID: 612e34feb56a4aeb0800000000000000 + internalID: -4709456396536258026 + vertices: [] + indices: + edges: [] + weights: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: 5e97eb03825dee720800000000000000 + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spritePackingTag: + pSDRemoveMatte: 0 + pSDShowRemoveMatteOption: 0 + userData: + assetBundleName: + assetBundleVariant: -- 2.47.1