mirror of
https://github.com/Steffo99/bleach-beach.git
synced 2024-12-04 19:04:19 +00:00
???
This commit is contained in:
parent
9e02aff81c
commit
6f8616a9d0
6 changed files with 269 additions and 255 deletions
173
Assets/Prefabs/Harpoon.prefab
generated
173
Assets/Prefabs/Harpoon.prefab
generated
|
@ -11,6 +11,23 @@ Prefab:
|
|||
m_SourcePrefab: {fileID: 0}
|
||||
m_RootGameObject: {fileID: 1737609814504882}
|
||||
m_IsPrefabAsset: 1
|
||||
--- !u!1 &1528553292678606
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 4347951085211458}
|
||||
- component: {fileID: 120926356996093036}
|
||||
- component: {fileID: 114113591002818490}
|
||||
m_Layer: 8
|
||||
m_Name: Chain
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!1 &1737609814504882
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
|
@ -21,14 +38,28 @@ GameObject:
|
|||
- component: {fileID: 4426492629719736}
|
||||
- component: {fileID: 212762869557517380}
|
||||
- component: {fileID: 50840653617852040}
|
||||
- component: {fileID: 61011723006022978}
|
||||
m_Layer: 0
|
||||
- component: {fileID: 114633804764434460}
|
||||
- component: {fileID: 61123955855276598}
|
||||
m_Layer: 8
|
||||
m_Name: Harpoon
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &4347951085211458
|
||||
Transform:
|
||||
m_ObjectHideFlags: 1
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 1528553292678606}
|
||||
m_LocalRotation: {x: -0, y: -0, z: -0.7071068, w: 0.7071068}
|
||||
m_LocalPosition: {x: -46.08152, y: 13.317055, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 4426492629719736}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!4 &4426492629719736
|
||||
Transform:
|
||||
m_ObjectHideFlags: 1
|
||||
|
@ -36,9 +67,10 @@ Transform:
|
|||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 1737609814504882}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0.7071068, w: 0.7071068}
|
||||
m_LocalPosition: {x: 0, y: 40, z: 0}
|
||||
m_LocalPosition: {x: 3.2301636, y: 46.417, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Children:
|
||||
- {fileID: 4347951085211458}
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 90}
|
||||
|
@ -62,7 +94,7 @@ Rigidbody2D:
|
|||
m_SleepingMode: 1
|
||||
m_CollisionDetection: 1
|
||||
m_Constraints: 0
|
||||
--- !u!61 &61011723006022978
|
||||
--- !u!61 &61123955855276598
|
||||
BoxCollider2D:
|
||||
m_ObjectHideFlags: 1
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
|
@ -74,19 +106,136 @@ BoxCollider2D:
|
|||
m_IsTrigger: 0
|
||||
m_UsedByEffector: 0
|
||||
m_UsedByComposite: 0
|
||||
m_Offset: {x: -0.31995654, y: 0.029030439}
|
||||
m_Offset: {x: 0.028404787, y: 0.30046117}
|
||||
m_SpriteTilingProperty:
|
||||
border: {x: 0, y: 0, z: 0, w: 0}
|
||||
pivot: {x: 0.94438404, y: 0.38834447}
|
||||
oldSize: {x: 0.72, y: 0.26}
|
||||
pivot: {x: 0.39075083, y: 0.08269283}
|
||||
oldSize: {x: 0.26, y: 0.72}
|
||||
newSize: {x: 0.72, y: 0.26}
|
||||
adaptiveTilingThreshold: 0.5
|
||||
drawMode: 0
|
||||
adaptiveTiling: 0
|
||||
m_AutoTiling: 0
|
||||
serializedVersion: 2
|
||||
m_Size: {x: 0.72, y: 0.26}
|
||||
m_Size: {x: 0.26, y: 0.72}
|
||||
m_EdgeRadius: 0
|
||||
--- !u!114 &114113591002818490
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 1528553292678606}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 6752fc4d1bb4f6a4d8a65512c48bb059, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
firstObject: {fileID: 0}
|
||||
secondObject: {fileID: 0}
|
||||
--- !u!114 &114633804764434460
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 1737609814504882}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: ccf0966283c66ef4e83d7d3c12e61e9a, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
returnSpeed: 5
|
||||
--- !u!120 &120926356996093036
|
||||
LineRenderer:
|
||||
m_ObjectHideFlags: 1
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 1528553292678606}
|
||||
m_Enabled: 1
|
||||
m_CastShadows: 1
|
||||
m_ReceiveShadows: 1
|
||||
m_DynamicOccludee: 1
|
||||
m_MotionVectors: 0
|
||||
m_LightProbeUsage: 0
|
||||
m_ReflectionProbeUsage: 0
|
||||
m_RenderingLayerMask: 4294967295
|
||||
m_Materials:
|
||||
- {fileID: 2100000, guid: 9009a0cf56984e848b674cf0ba6637b8, type: 2}
|
||||
m_StaticBatchInfo:
|
||||
firstSubMesh: 0
|
||||
subMeshCount: 0
|
||||
m_StaticBatchRoot: {fileID: 0}
|
||||
m_ProbeAnchor: {fileID: 0}
|
||||
m_LightProbeVolumeOverride: {fileID: 0}
|
||||
m_ScaleInLightmap: 1
|
||||
m_PreserveUVs: 0
|
||||
m_IgnoreNormalsForChartDetection: 0
|
||||
m_ImportantGI: 0
|
||||
m_StitchLightmapSeams: 0
|
||||
m_SelectedEditorRenderState: 3
|
||||
m_MinimumChartSize: 4
|
||||
m_AutoUVMaxDistance: 0.5
|
||||
m_AutoUVMaxAngle: 89
|
||||
m_LightmapParameters: {fileID: 0}
|
||||
m_SortingLayerID: -1671228057
|
||||
m_SortingLayer: 1
|
||||
m_SortingOrder: 0
|
||||
m_Positions:
|
||||
- {x: 0, y: 0, z: 0}
|
||||
- {x: 0, y: 0, z: 1}
|
||||
m_Parameters:
|
||||
serializedVersion: 2
|
||||
widthMultiplier: 1
|
||||
widthCurve:
|
||||
serializedVersion: 2
|
||||
m_Curve:
|
||||
- serializedVersion: 3
|
||||
time: 0
|
||||
value: 0.1484375
|
||||
inSlope: 0
|
||||
outSlope: 0
|
||||
tangentMode: 0
|
||||
weightedMode: 0
|
||||
inWeight: 0.33333334
|
||||
outWeight: 0.33333334
|
||||
m_PreInfinity: 2
|
||||
m_PostInfinity: 2
|
||||
m_RotationOrder: 4
|
||||
colorGradient:
|
||||
serializedVersion: 2
|
||||
key0: {r: 1, g: 1, b: 1, a: 1}
|
||||
key1: {r: 1, g: 1, b: 1, a: 1}
|
||||
key2: {r: 0, g: 0, b: 0, a: 0}
|
||||
key3: {r: 0, g: 0, b: 0, a: 0}
|
||||
key4: {r: 0, g: 0, b: 0, a: 0}
|
||||
key5: {r: 0, g: 0, b: 0, a: 0}
|
||||
key6: {r: 0, g: 0, b: 0, a: 0}
|
||||
key7: {r: 0, g: 0, b: 0, a: 0}
|
||||
ctime0: 0
|
||||
ctime1: 65535
|
||||
ctime2: 0
|
||||
ctime3: 0
|
||||
ctime4: 0
|
||||
ctime5: 0
|
||||
ctime6: 0
|
||||
ctime7: 0
|
||||
atime0: 0
|
||||
atime1: 65535
|
||||
atime2: 0
|
||||
atime3: 0
|
||||
atime4: 0
|
||||
atime5: 0
|
||||
atime6: 0
|
||||
atime7: 0
|
||||
m_Mode: 0
|
||||
m_NumColorKeys: 2
|
||||
m_NumAlphaKeys: 2
|
||||
numCornerVertices: 0
|
||||
numCapVertices: 0
|
||||
alignment: 0
|
||||
textureMode: 1
|
||||
generateLightingData: 0
|
||||
m_UseWorldSpace: 1
|
||||
m_Loop: 0
|
||||
--- !u!212 &212762869557517380
|
||||
SpriteRenderer:
|
||||
m_ObjectHideFlags: 1
|
||||
|
@ -119,9 +268,9 @@ SpriteRenderer:
|
|||
m_AutoUVMaxDistance: 0.5
|
||||
m_AutoUVMaxAngle: 89
|
||||
m_LightmapParameters: {fileID: 0}
|
||||
m_SortingLayerID: 0
|
||||
m_SortingLayer: 0
|
||||
m_SortingOrder: 0
|
||||
m_SortingLayerID: -1671228057
|
||||
m_SortingLayer: 1
|
||||
m_SortingOrder: 1
|
||||
m_Sprite: {fileID: 21300000, guid: 1910d533ac79318488bff140cff2ac97, type: 3}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_FlipX: 0
|
||||
|
|
153
Assets/Prefabs/Ship.prefab
generated
153
Assets/Prefabs/Ship.prefab
generated
|
@ -11,23 +11,6 @@ Prefab:
|
|||
m_SourcePrefab: {fileID: 0}
|
||||
m_RootGameObject: {fileID: 1506768218425990}
|
||||
m_IsPrefabAsset: 1
|
||||
--- !u!1 &1385502092125924
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 4991525837746586}
|
||||
- component: {fileID: 120914689644947078}
|
||||
- component: {fileID: 114386324871494080}
|
||||
m_Layer: 0
|
||||
m_Name: Chain
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!1 &1396569450907664
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
|
@ -38,7 +21,7 @@ GameObject:
|
|||
- component: {fileID: 4419769467158982}
|
||||
- component: {fileID: 212928515413584804}
|
||||
- component: {fileID: 60759684842668732}
|
||||
m_Layer: 0
|
||||
m_Layer: 8
|
||||
m_Name: Hull
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
|
@ -55,7 +38,7 @@ GameObject:
|
|||
- component: {fileID: 4279439219186522}
|
||||
- component: {fileID: 50107883579770240}
|
||||
- component: {fileID: 114893472868460232}
|
||||
m_Layer: 0
|
||||
m_Layer: 8
|
||||
m_Name: Ship
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
|
@ -70,7 +53,7 @@ GameObject:
|
|||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 4811992088834386}
|
||||
m_Layer: 0
|
||||
m_Layer: 8
|
||||
m_Name: Fish Pile
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
|
@ -87,7 +70,7 @@ GameObject:
|
|||
- component: {fileID: 4881997913105036}
|
||||
- component: {fileID: 212270562025887474}
|
||||
- component: {fileID: 114971120113848216}
|
||||
m_Layer: 0
|
||||
m_Layer: 8
|
||||
m_Name: Cannon
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
|
@ -106,7 +89,6 @@ Transform:
|
|||
m_Children:
|
||||
- {fileID: 4419769467158982}
|
||||
- {fileID: 4811992088834386}
|
||||
- {fileID: 4991525837746586}
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
|
@ -150,19 +132,6 @@ Transform:
|
|||
m_Father: {fileID: 4419769467158982}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!4 &4991525837746586
|
||||
Transform:
|
||||
m_ObjectHideFlags: 1
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 1385502092125924}
|
||||
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
||||
m_LocalPosition: {x: -13.64, y: -40.63, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 4279439219186522}
|
||||
m_RootOrder: 2
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!50 &50107883579770240
|
||||
Rigidbody2D:
|
||||
serializedVersion: 4
|
||||
|
@ -211,20 +180,6 @@ PolygonCollider2D:
|
|||
- {x: 0.78310096, y: -0.51465136}
|
||||
- {x: 1.3078427, y: 0.32390344}
|
||||
- {x: -1.2722943, y: 0.3283955}
|
||||
--- !u!114 &114386324871494080
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 1385502092125924}
|
||||
m_Enabled: 0
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 6752fc4d1bb4f6a4d8a65512c48bb059, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
firstObject: {fileID: 1506768218425990}
|
||||
secondObject: {fileID: 1172082933451472, guid: 288f16ae5eaa16440b89da431723b1c2,
|
||||
type: 2}
|
||||
--- !u!114 &114893472868460232
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
|
@ -254,99 +209,9 @@ MonoBehaviour:
|
|||
m_EditorClassIdentifier:
|
||||
harpoonAvailable: 1
|
||||
harpoon: {fileID: 1737609814504882, guid: 288f16ae5eaa16440b89da431723b1c2, type: 2}
|
||||
force: 1000
|
||||
--- !u!120 &120914689644947078
|
||||
LineRenderer:
|
||||
m_ObjectHideFlags: 1
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 1385502092125924}
|
||||
m_Enabled: 1
|
||||
m_CastShadows: 1
|
||||
m_ReceiveShadows: 1
|
||||
m_DynamicOccludee: 1
|
||||
m_MotionVectors: 0
|
||||
m_LightProbeUsage: 0
|
||||
m_ReflectionProbeUsage: 0
|
||||
m_RenderingLayerMask: 4294967295
|
||||
m_Materials:
|
||||
- {fileID: 2100000, guid: 9009a0cf56984e848b674cf0ba6637b8, type: 2}
|
||||
m_StaticBatchInfo:
|
||||
firstSubMesh: 0
|
||||
subMeshCount: 0
|
||||
m_StaticBatchRoot: {fileID: 0}
|
||||
m_ProbeAnchor: {fileID: 0}
|
||||
m_LightProbeVolumeOverride: {fileID: 0}
|
||||
m_ScaleInLightmap: 1
|
||||
m_PreserveUVs: 0
|
||||
m_IgnoreNormalsForChartDetection: 0
|
||||
m_ImportantGI: 0
|
||||
m_StitchLightmapSeams: 0
|
||||
m_SelectedEditorRenderState: 3
|
||||
m_MinimumChartSize: 4
|
||||
m_AutoUVMaxDistance: 0.5
|
||||
m_AutoUVMaxAngle: 89
|
||||
m_LightmapParameters: {fileID: 0}
|
||||
m_SortingLayerID: 0
|
||||
m_SortingLayer: 0
|
||||
m_SortingOrder: 0
|
||||
m_Positions:
|
||||
- {x: 0, y: 0, z: 0}
|
||||
- {x: 0, y: 0, z: 1}
|
||||
m_Parameters:
|
||||
serializedVersion: 2
|
||||
widthMultiplier: 1
|
||||
widthCurve:
|
||||
serializedVersion: 2
|
||||
m_Curve:
|
||||
- serializedVersion: 3
|
||||
time: 0
|
||||
value: 0.1484375
|
||||
inSlope: 0
|
||||
outSlope: 0
|
||||
tangentMode: 0
|
||||
weightedMode: 0
|
||||
inWeight: 0.33333334
|
||||
outWeight: 0.33333334
|
||||
m_PreInfinity: 2
|
||||
m_PostInfinity: 2
|
||||
m_RotationOrder: 4
|
||||
colorGradient:
|
||||
serializedVersion: 2
|
||||
key0: {r: 1, g: 1, b: 1, a: 1}
|
||||
key1: {r: 1, g: 1, b: 1, a: 1}
|
||||
key2: {r: 0, g: 0, b: 0, a: 0}
|
||||
key3: {r: 0, g: 0, b: 0, a: 0}
|
||||
key4: {r: 0, g: 0, b: 0, a: 0}
|
||||
key5: {r: 0, g: 0, b: 0, a: 0}
|
||||
key6: {r: 0, g: 0, b: 0, a: 0}
|
||||
key7: {r: 0, g: 0, b: 0, a: 0}
|
||||
ctime0: 0
|
||||
ctime1: 65535
|
||||
ctime2: 0
|
||||
ctime3: 0
|
||||
ctime4: 0
|
||||
ctime5: 0
|
||||
ctime6: 0
|
||||
ctime7: 0
|
||||
atime0: 0
|
||||
atime1: 65535
|
||||
atime2: 0
|
||||
atime3: 0
|
||||
atime4: 0
|
||||
atime5: 0
|
||||
atime6: 0
|
||||
atime7: 0
|
||||
m_Mode: 0
|
||||
m_NumColorKeys: 2
|
||||
m_NumAlphaKeys: 2
|
||||
numCornerVertices: 0
|
||||
numCapVertices: 0
|
||||
alignment: 0
|
||||
textureMode: 1
|
||||
generateLightingData: 0
|
||||
m_UseWorldSpace: 1
|
||||
m_Loop: 0
|
||||
maxForce: 5
|
||||
forceBuildingSpeed: 4
|
||||
startingForce: 1
|
||||
--- !u!212 &212270562025887474
|
||||
SpriteRenderer:
|
||||
m_ObjectHideFlags: 1
|
||||
|
@ -379,8 +244,8 @@ SpriteRenderer:
|
|||
m_AutoUVMaxDistance: 0.5
|
||||
m_AutoUVMaxAngle: 89
|
||||
m_LightmapParameters: {fileID: 0}
|
||||
m_SortingLayerID: 0
|
||||
m_SortingLayer: 0
|
||||
m_SortingLayerID: -1570049999
|
||||
m_SortingLayer: 2
|
||||
m_SortingOrder: 1
|
||||
m_Sprite: {fileID: 21300000, guid: bdd08b099cc1c614096f43a9ccf99b59, type: 3}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
|
|
147
Assets/Scenes/Game.unity
generated
147
Assets/Scenes/Game.unity
generated
|
@ -113,47 +113,47 @@ NavMeshSettings:
|
|||
debug:
|
||||
m_Flags: 0
|
||||
m_NavMeshData: {fileID: 0}
|
||||
--- !u!1001 &244194707
|
||||
--- !u!1001 &221459374
|
||||
Prefab:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
m_TransformParent: {fileID: 0}
|
||||
m_Modifications:
|
||||
- target: {fileID: 4279439219186522, guid: 1cf703958a669d942a42326499701367, type: 2}
|
||||
- target: {fileID: 4978811670595372, guid: 633eed510cb97614896a65613c2eb772, type: 2}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: 4.27
|
||||
value: -3.1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4279439219186522, guid: 1cf703958a669d942a42326499701367, type: 2}
|
||||
- target: {fileID: 4978811670595372, guid: 633eed510cb97614896a65613c2eb772, type: 2}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: 42.06
|
||||
value: 44.5
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4279439219186522, guid: 1cf703958a669d942a42326499701367, type: 2}
|
||||
- target: {fileID: 4978811670595372, guid: 633eed510cb97614896a65613c2eb772, type: 2}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: 0
|
||||
value: 2.77
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4279439219186522, guid: 1cf703958a669d942a42326499701367, type: 2}
|
||||
- target: {fileID: 4978811670595372, guid: 633eed510cb97614896a65613c2eb772, type: 2}
|
||||
propertyPath: m_LocalRotation.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4279439219186522, guid: 1cf703958a669d942a42326499701367, type: 2}
|
||||
- target: {fileID: 4978811670595372, guid: 633eed510cb97614896a65613c2eb772, type: 2}
|
||||
propertyPath: m_LocalRotation.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4279439219186522, guid: 1cf703958a669d942a42326499701367, type: 2}
|
||||
- target: {fileID: 4978811670595372, guid: 633eed510cb97614896a65613c2eb772, type: 2}
|
||||
propertyPath: m_LocalRotation.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4279439219186522, guid: 1cf703958a669d942a42326499701367, type: 2}
|
||||
- target: {fileID: 4978811670595372, guid: 633eed510cb97614896a65613c2eb772, type: 2}
|
||||
propertyPath: m_LocalRotation.w
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4279439219186522, guid: 1cf703958a669d942a42326499701367, type: 2}
|
||||
- target: {fileID: 4978811670595372, guid: 633eed510cb97614896a65613c2eb772, type: 2}
|
||||
propertyPath: m_RootOrder
|
||||
value: 1
|
||||
value: 4
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_SourcePrefab: {fileID: 100100000, guid: 1cf703958a669d942a42326499701367, type: 2}
|
||||
m_SourcePrefab: {fileID: 100100000, guid: 633eed510cb97614896a65613c2eb772, type: 2}
|
||||
m_IsPrefabAsset: 0
|
||||
--- !u!1001 &391017218
|
||||
Prefab:
|
||||
|
@ -306,83 +306,50 @@ Prefab:
|
|||
m_RemovedComponents: []
|
||||
m_SourcePrefab: {fileID: 100100000, guid: 4dc0408b236da9847b1c799161bbd70a, type: 2}
|
||||
m_IsPrefabAsset: 0
|
||||
--- !u!1001 &1406564692
|
||||
Prefab:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
m_TransformParent: {fileID: 0}
|
||||
m_Modifications:
|
||||
- target: {fileID: 4279439219186522, guid: 1cf703958a669d942a42326499701367, type: 2}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: 4.27
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4279439219186522, guid: 1cf703958a669d942a42326499701367, type: 2}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: 42.06
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4279439219186522, guid: 1cf703958a669d942a42326499701367, type: 2}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4279439219186522, guid: 1cf703958a669d942a42326499701367, type: 2}
|
||||
propertyPath: m_LocalRotation.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4279439219186522, guid: 1cf703958a669d942a42326499701367, type: 2}
|
||||
propertyPath: m_LocalRotation.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4279439219186522, guid: 1cf703958a669d942a42326499701367, type: 2}
|
||||
propertyPath: m_LocalRotation.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4279439219186522, guid: 1cf703958a669d942a42326499701367, type: 2}
|
||||
propertyPath: m_LocalRotation.w
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4279439219186522, guid: 1cf703958a669d942a42326499701367, type: 2}
|
||||
propertyPath: m_RootOrder
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_SourcePrefab: {fileID: 100100000, guid: 1cf703958a669d942a42326499701367, type: 2}
|
||||
m_IsPrefabAsset: 0
|
||||
--- !u!1 &1410052124 stripped
|
||||
GameObject:
|
||||
m_CorrespondingSourceObject: {fileID: 1506768218425990, guid: 1cf703958a669d942a42326499701367,
|
||||
type: 2}
|
||||
m_PrefabInternal: {fileID: 244194707}
|
||||
--- !u!1 &1456580292
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 1456580294}
|
||||
- component: {fileID: 1456580293}
|
||||
m_Layer: 0
|
||||
m_Name: GameObject
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!212 &1456580293
|
||||
SpriteRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 1456580292}
|
||||
m_Enabled: 1
|
||||
m_CastShadows: 0
|
||||
m_ReceiveShadows: 0
|
||||
m_DynamicOccludee: 1
|
||||
m_MotionVectors: 1
|
||||
m_LightProbeUsage: 1
|
||||
m_ReflectionProbeUsage: 1
|
||||
m_RenderingLayerMask: 4294967295
|
||||
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_PreserveUVs: 0
|
||||
m_IgnoreNormalsForChartDetection: 0
|
||||
m_ImportantGI: 0
|
||||
m_StitchLightmapSeams: 0
|
||||
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: -3
|
||||
m_Sprite: {fileID: 21300000, guid: aa55a5c6b0f009a428147c305780d1de, type: 3}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_FlipX: 0
|
||||
m_FlipY: 0
|
||||
m_DrawMode: 0
|
||||
m_Size: {x: 6.83, y: 10.42}
|
||||
m_AdaptiveModeThreshold: 0.5
|
||||
m_SpriteTileMode: 0
|
||||
m_WasSpriteAssigned: 1
|
||||
m_MaskInteraction: 0
|
||||
m_SpriteSortPoint: 0
|
||||
--- !u!4 &1456580294
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 1456580292}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: -3.1, y: 44.5, z: 2.77}
|
||||
m_LocalScale: {x: 2.7887762, y: 2.7887762, z: 2.7887762}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 4
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_PrefabInternal: {fileID: 1406564692}
|
||||
|
|
|
@ -10,16 +10,13 @@ public class Cannon : MonoBehaviour {
|
|||
public float forceBuildingSpeed = 2f;
|
||||
public float startingForce = 1f;
|
||||
private float force = 1f;
|
||||
|
||||
public GameObject chain;
|
||||
|
||||
private Linker chainLinker;
|
||||
|
||||
private SpriteRenderer spriteRenderer;
|
||||
|
||||
private void Start()
|
||||
{
|
||||
spriteRenderer = GetComponent<SpriteRenderer>();
|
||||
chainLinker = chain.GetComponent<Linker>();
|
||||
Physics2D.IgnoreLayerCollision(8, 8);
|
||||
}
|
||||
|
||||
private void Update ()
|
||||
|
@ -41,10 +38,14 @@ public class Cannon : MonoBehaviour {
|
|||
harpoonInstance.transform.rotation = transform.rotation;
|
||||
harpoonInstance.GetComponent<Rigidbody2D>().AddForce(direction * force);
|
||||
harpoonInstance.GetComponent<SpriteRenderer>().flipX = spriteRenderer.flipX;
|
||||
chainLinker.secondObject = harpoonInstance;
|
||||
Linker linker = harpoonInstance.GetComponentInChildren<Linker>();
|
||||
linker.firstObject = gameObject;
|
||||
linker.secondObject = harpoonInstance;
|
||||
force = startingForce;
|
||||
harpoonAvailable = false;
|
||||
}
|
||||
}
|
||||
float scale = 1f + (((force - startingForce) / (maxForce - startingForce)) * 0.5f);
|
||||
transform.localScale = new Vector3(scale, scale, scale);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -4,22 +4,48 @@ using UnityEngine;
|
|||
|
||||
public class Harpoon : MonoBehaviour {
|
||||
|
||||
public float returnSpeed = 5f;
|
||||
|
||||
private Rigidbody2D rigidbody2D;
|
||||
private bool going = true;
|
||||
private Linker linker;
|
||||
|
||||
private void Start()
|
||||
{
|
||||
rigidbody2D = GetComponent<Rigidbody2D>();
|
||||
linker = GetComponentInChildren<Linker>();
|
||||
}
|
||||
|
||||
void Update () {
|
||||
void Update ()
|
||||
{
|
||||
if(going)
|
||||
{
|
||||
transform.rotation = Quaternion.LookRotation(Vector3.forward, rigidbody2D.velocity.normalized);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (transform.position.y > linker.firstObject.transform.position.y)
|
||||
{
|
||||
|
||||
rigidbody2D.MoveRotation(Vector2.Angle(transform.position - linker.firstObject.transform.position, Vector2.right) - 90f);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
rigidbody2D.MoveRotation(-Vector2.Angle(transform.position - linker.firstObject.transform.position, Vector2.right) - 90f);
|
||||
}
|
||||
rigidbody2D.MovePosition(Vector3.MoveTowards(transform.position, linker.firstObject.transform.position, returnSpeed * Time.deltaTime));
|
||||
if(Vector3.Distance(transform.position, linker.firstObject.transform.position) < 0.2f)
|
||||
{
|
||||
linker.firstObject.GetComponent<Cannon>().harpoonAvailable = true;
|
||||
Destroy(gameObject);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void OnCollisionEnter2D(Collision2D collision)
|
||||
{
|
||||
going = false;
|
||||
rigidbody2D.bodyType = RigidbodyType2D.Kinematic;
|
||||
}
|
||||
}
|
||||
|
|
10
ProjectSettings/TagManager.asset
generated
10
ProjectSettings/TagManager.asset
generated
|
@ -13,8 +13,8 @@ TagManager:
|
|||
- UI
|
||||
-
|
||||
-
|
||||
-
|
||||
-
|
||||
- Player
|
||||
- Enemy
|
||||
-
|
||||
-
|
||||
-
|
||||
|
@ -41,3 +41,9 @@ TagManager:
|
|||
- name: Default
|
||||
uniqueID: 0
|
||||
locked: 0
|
||||
- name: Projectiles
|
||||
uniqueID: 2623739239
|
||||
locked: 0
|
||||
- name: Cannon
|
||||
uniqueID: 2724917297
|
||||
locked: 0
|
||||
|
|
Loading…
Reference in a new issue