mirror of
https://github.com/Steffo99/bleach-beach.git
synced 2024-12-04 19:04:19 +00:00
Add working cannon and harpoon
This commit is contained in:
parent
8ce156e6d5
commit
fc7ef768a4
15 changed files with 383 additions and 279 deletions
4
Assets/Prefabs/Camera.prefab
generated
4
Assets/Prefabs/Camera.prefab
generated
|
@ -36,7 +36,7 @@ Transform:
|
|||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 1683038502340488}
|
||||
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
||||
m_LocalPosition: {x: -4.568595, y: 35.28643, z: -1}
|
||||
m_LocalPosition: {x: 0, y: 33.22, z: -1}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
|
@ -101,3 +101,5 @@ MonoBehaviour:
|
|||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
target: {fileID: 0}
|
||||
limitFirstCorner: {x: -29.5, y: 7}
|
||||
limitSecondCorner: {x: 30, y: 50}
|
||||
|
|
133
Assets/Prefabs/Chain Link.prefab
generated
133
Assets/Prefabs/Chain Link.prefab
generated
|
@ -1,133 +0,0 @@
|
|||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!1001 &100100000
|
||||
Prefab:
|
||||
m_ObjectHideFlags: 1
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
m_TransformParent: {fileID: 0}
|
||||
m_Modifications: []
|
||||
m_RemovedComponents: []
|
||||
m_SourcePrefab: {fileID: 0}
|
||||
m_RootGameObject: {fileID: 1662540403241760}
|
||||
m_IsPrefabAsset: 1
|
||||
--- !u!1 &1662540403241760
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 4392388992178572}
|
||||
- component: {fileID: 212002405557154080}
|
||||
- component: {fileID: 50228722622032510}
|
||||
- component: {fileID: 233495185698650704}
|
||||
m_Layer: 0
|
||||
m_Name: Chain Link
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &4392388992178572
|
||||
Transform:
|
||||
m_ObjectHideFlags: 1
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 1662540403241760}
|
||||
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: 0}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!50 &50228722622032510
|
||||
Rigidbody2D:
|
||||
serializedVersion: 4
|
||||
m_ObjectHideFlags: 1
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 1662540403241760}
|
||||
m_BodyType: 0
|
||||
m_Simulated: 1
|
||||
m_UseFullKinematicContacts: 0
|
||||
m_UseAutoMass: 0
|
||||
m_Mass: 0.001
|
||||
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!212 &212002405557154080
|
||||
SpriteRenderer:
|
||||
m_ObjectHideFlags: 1
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 1662540403241760}
|
||||
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: 0
|
||||
m_Sprite: {fileID: 21300000, guid: 62563ae66567b2e4e8e429f7859e4672, 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.12, y: 0.18}
|
||||
m_AdaptiveModeThreshold: 0.5
|
||||
m_SpriteTileMode: 0
|
||||
m_WasSpriteAssigned: 1
|
||||
m_MaskInteraction: 0
|
||||
m_SpriteSortPoint: 0
|
||||
--- !u!233 &233495185698650704
|
||||
HingeJoint2D:
|
||||
m_ObjectHideFlags: 1
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 1662540403241760}
|
||||
m_Enabled: 1
|
||||
serializedVersion: 4
|
||||
m_EnableCollision: 1
|
||||
m_ConnectedRigidBody: {fileID: 0}
|
||||
m_BreakForce: Infinity
|
||||
m_BreakTorque: Infinity
|
||||
m_AutoConfigureConnectedAnchor: 1
|
||||
m_Anchor: {x: -0.006795883, y: 0.08999634}
|
||||
m_ConnectedAnchor: {x: 9.948204, y: 115.50818}
|
||||
m_UseMotor: 0
|
||||
m_Motor:
|
||||
m_MotorSpeed: 0
|
||||
m_MaximumMotorForce: 10000
|
||||
m_UseLimits: 1
|
||||
m_AngleLimits:
|
||||
m_LowerAngle: -70
|
||||
m_UpperAngle: 250
|
8
Assets/Prefabs/Chain Link.prefab.meta
generated
8
Assets/Prefabs/Chain Link.prefab.meta
generated
|
@ -1,8 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 0ccfd55ddf6d29547b1e9de873bca75d
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 100100000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
58
Assets/Prefabs/ChainAuto.prefab
generated
58
Assets/Prefabs/ChainAuto.prefab
generated
|
@ -1,58 +0,0 @@
|
|||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!1001 &100100000
|
||||
Prefab:
|
||||
m_ObjectHideFlags: 1
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
m_TransformParent: {fileID: 0}
|
||||
m_Modifications: []
|
||||
m_RemovedComponents: []
|
||||
m_SourcePrefab: {fileID: 0}
|
||||
m_RootGameObject: {fileID: 1244978095539468}
|
||||
m_IsPrefabAsset: 1
|
||||
--- !u!1 &1244978095539468
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 4455010428981536}
|
||||
- component: {fileID: 114813918558723682}
|
||||
m_Layer: 0
|
||||
m_Name: ChainAuto
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &4455010428981536
|
||||
Transform:
|
||||
m_ObjectHideFlags: 1
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 1244978095539468}
|
||||
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: 0}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!114 &114813918558723682
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 1244978095539468}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 19e8f1cd3ef695e499687d78824c32e7, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
chain: {fileID: 1662540403241760, guid: 0ccfd55ddf6d29547b1e9de873bca75d, type: 2}
|
||||
tail: {fileID: 1172082933451472, guid: 288f16ae5eaa16440b89da431723b1c2, type: 2}
|
||||
chainOffset: {x: 0, y: 0.18, z: 0}
|
||||
tailOffset: {x: 0.08, y: 0.8, z: 0}
|
||||
chainNumber: 50
|
8
Assets/Prefabs/ChainAuto.prefab.meta
generated
8
Assets/Prefabs/ChainAuto.prefab.meta
generated
|
@ -1,8 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 1ef19db1268d7394ba331840c87d49e0
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 100100000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
78
Assets/Prefabs/Harpoon.prefab
generated
78
Assets/Prefabs/Harpoon.prefab
generated
|
@ -9,19 +9,19 @@ Prefab:
|
|||
m_Modifications: []
|
||||
m_RemovedComponents: []
|
||||
m_SourcePrefab: {fileID: 0}
|
||||
m_RootGameObject: {fileID: 1172082933451472}
|
||||
m_RootGameObject: {fileID: 1737609814504882}
|
||||
m_IsPrefabAsset: 1
|
||||
--- !u!1 &1172082933451472
|
||||
--- !u!1 &1737609814504882
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 4476677850953110}
|
||||
- component: {fileID: 212226800448260080}
|
||||
- component: {fileID: 50149411760683918}
|
||||
- component: {fileID: 233409936731713168}
|
||||
- component: {fileID: 4426492629719736}
|
||||
- component: {fileID: 212762869557517380}
|
||||
- component: {fileID: 50840653617852040}
|
||||
- component: {fileID: 61011723006022978}
|
||||
m_Layer: 0
|
||||
m_Name: Harpoon
|
||||
m_TagString: Untagged
|
||||
|
@ -29,31 +29,31 @@ GameObject:
|
|||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &4476677850953110
|
||||
--- !u!4 &4426492629719736
|
||||
Transform:
|
||||
m_ObjectHideFlags: 1
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 1172082933451472}
|
||||
m_GameObject: {fileID: 1737609814504882}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0.7071068, w: 0.7071068}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalPosition: {x: 0, y: 40, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 90}
|
||||
--- !u!50 &50149411760683918
|
||||
--- !u!50 &50840653617852040
|
||||
Rigidbody2D:
|
||||
serializedVersion: 4
|
||||
m_ObjectHideFlags: 1
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 1172082933451472}
|
||||
m_GameObject: {fileID: 1737609814504882}
|
||||
m_BodyType: 0
|
||||
m_Simulated: 1
|
||||
m_UseFullKinematicContacts: 0
|
||||
m_UseAutoMass: 0
|
||||
m_Mass: 0.1
|
||||
m_Mass: 0.6
|
||||
m_LinearDrag: 0
|
||||
m_AngularDrag: 0.05
|
||||
m_GravityScale: 1
|
||||
|
@ -62,12 +62,37 @@ Rigidbody2D:
|
|||
m_SleepingMode: 1
|
||||
m_CollisionDetection: 0
|
||||
m_Constraints: 0
|
||||
--- !u!212 &212226800448260080
|
||||
--- !u!61 &61011723006022978
|
||||
BoxCollider2D:
|
||||
m_ObjectHideFlags: 1
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 1737609814504882}
|
||||
m_Enabled: 1
|
||||
m_Density: 1
|
||||
m_Material: {fileID: 0}
|
||||
m_IsTrigger: 0
|
||||
m_UsedByEffector: 0
|
||||
m_UsedByComposite: 0
|
||||
m_Offset: {x: -0.31995654, y: 0.029030439}
|
||||
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}
|
||||
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_EdgeRadius: 0
|
||||
--- !u!212 &212762869557517380
|
||||
SpriteRenderer:
|
||||
m_ObjectHideFlags: 1
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 1172082933451472}
|
||||
m_GameObject: {fileID: 1737609814504882}
|
||||
m_Enabled: 1
|
||||
m_CastShadows: 0
|
||||
m_ReceiveShadows: 0
|
||||
|
@ -102,32 +127,9 @@ SpriteRenderer:
|
|||
m_FlipX: 0
|
||||
m_FlipY: 0
|
||||
m_DrawMode: 0
|
||||
m_Size: {x: 0.26, y: 0.72}
|
||||
m_Size: {x: 0.72, y: 0.26}
|
||||
m_AdaptiveModeThreshold: 0.5
|
||||
m_SpriteTileMode: 0
|
||||
m_WasSpriteAssigned: 1
|
||||
m_MaskInteraction: 0
|
||||
m_SpriteSortPoint: 0
|
||||
--- !u!233 &233409936731713168
|
||||
HingeJoint2D:
|
||||
m_ObjectHideFlags: 1
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 1172082933451472}
|
||||
m_Enabled: 1
|
||||
serializedVersion: 4
|
||||
m_EnableCollision: 0
|
||||
m_ConnectedRigidBody: {fileID: 0}
|
||||
m_BreakForce: Infinity
|
||||
m_BreakTorque: Infinity
|
||||
m_AutoConfigureConnectedAnchor: 1
|
||||
m_Anchor: {x: 0.7236317, y: -0.062279895}
|
||||
m_ConnectedAnchor: {x: 7.635868, y: 77.46123}
|
||||
m_UseMotor: 0
|
||||
m_Motor:
|
||||
m_MotorSpeed: 0
|
||||
m_MaximumMotorForce: 10000
|
||||
m_UseLimits: 1
|
||||
m_AngleLimits:
|
||||
m_LowerAngle: -70
|
||||
m_UpperAngle: 250
|
||||
|
|
145
Assets/Prefabs/Ship.prefab
generated
145
Assets/Prefabs/Ship.prefab
generated
|
@ -11,6 +11,23 @@ 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
|
||||
|
@ -67,11 +84,12 @@ Transform:
|
|||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 1506768218425990}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 2.8382182, y: 40.38074, z: 0}
|
||||
m_LocalPosition: {x: 13.64, y: 40.63, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children:
|
||||
- {fileID: 4419769467158982}
|
||||
- {fileID: 4811992088834386}
|
||||
- {fileID: 4991525837746586}
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
|
@ -101,6 +119,19 @@ Transform:
|
|||
m_Father: {fileID: 4279439219186522}
|
||||
m_RootOrder: 1
|
||||
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
|
||||
|
@ -112,7 +143,7 @@ Rigidbody2D:
|
|||
m_Simulated: 1
|
||||
m_UseFullKinematicContacts: 0
|
||||
m_UseAutoMass: 0
|
||||
m_Mass: 1
|
||||
m_Mass: 2
|
||||
m_LinearDrag: 1
|
||||
m_AngularDrag: 1
|
||||
m_GravityScale: 1
|
||||
|
@ -149,6 +180,20 @@ 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: 1
|
||||
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
|
||||
|
@ -161,10 +206,102 @@ MonoBehaviour:
|
|||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
hull: {fileID: 1396569450907664}
|
||||
horizontalShipSpeed: 10
|
||||
verticalShipSpeed: 18
|
||||
horizontalShipSpeed: 5
|
||||
verticalShipSpeed: 24
|
||||
maxJetFuel: 2
|
||||
jetFuelRechargeSpeed: 0.1
|
||||
--- !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
|
||||
--- !u!212 &212928515413584804
|
||||
SpriteRenderer:
|
||||
m_ObjectHideFlags: 1
|
||||
|
|
151
Assets/Scenes/Game.unity
generated
151
Assets/Scenes/Game.unity
generated
|
@ -122,11 +122,11 @@ Prefab:
|
|||
m_Modifications:
|
||||
- target: {fileID: 4279439219186522, guid: 1cf703958a669d942a42326499701367, type: 2}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: 2.8382182
|
||||
value: 13.64
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4279439219186522, guid: 1cf703958a669d942a42326499701367, type: 2}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: 40.38074
|
||||
value: 40.63
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4279439219186522, guid: 1cf703958a669d942a42326499701367, type: 2}
|
||||
propertyPath: m_LocalPosition.z
|
||||
|
@ -152,6 +152,11 @@ Prefab:
|
|||
propertyPath: m_RootOrder
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 114386324871494080, guid: 1cf703958a669d942a42326499701367,
|
||||
type: 2}
|
||||
propertyPath: m_Enabled
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_SourcePrefab: {fileID: 100100000, guid: 1cf703958a669d942a42326499701367, type: 2}
|
||||
m_IsPrefabAsset: 0
|
||||
|
@ -164,11 +169,11 @@ Prefab:
|
|||
m_Modifications:
|
||||
- target: {fileID: 4059627635461364, guid: acb6270a21e7fa744878210a4df90d27, type: 2}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: -4.568595
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4059627635461364, guid: acb6270a21e7fa744878210a4df90d27, type: 2}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: 35.28643
|
||||
value: 33.22
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4059627635461364, guid: acb6270a21e7fa744878210a4df90d27, type: 2}
|
||||
propertyPath: m_LocalPosition.z
|
||||
|
@ -199,26 +204,6 @@ Prefab:
|
|||
propertyPath: target
|
||||
value:
|
||||
objectReference: {fileID: 1410052124}
|
||||
- target: {fileID: 20610604938940038, guid: acb6270a21e7fa744878210a4df90d27,
|
||||
type: 2}
|
||||
propertyPath: orthographic size
|
||||
value: 11
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 20610604938940038, guid: acb6270a21e7fa744878210a4df90d27,
|
||||
type: 2}
|
||||
propertyPath: m_BackGroundColor.r
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 20610604938940038, guid: acb6270a21e7fa744878210a4df90d27,
|
||||
type: 2}
|
||||
propertyPath: m_BackGroundColor.g
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 20610604938940038, guid: acb6270a21e7fa744878210a4df90d27,
|
||||
type: 2}
|
||||
propertyPath: m_BackGroundColor.b
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_SourcePrefab: {fileID: 100100000, guid: acb6270a21e7fa744878210a4df90d27, type: 2}
|
||||
m_IsPrefabAsset: 0
|
||||
|
@ -261,6 +246,26 @@ Prefab:
|
|||
propertyPath: m_RootOrder
|
||||
value: 3
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 60970885189888988, guid: 0514a38f22bae454d821a12517a141c4,
|
||||
type: 2}
|
||||
propertyPath: m_Points.m_Paths.Array.data[0].Array.data[258].y
|
||||
value: 56.741875
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 60970885189888988, guid: 0514a38f22bae454d821a12517a141c4,
|
||||
type: 2}
|
||||
propertyPath: m_Points.m_Paths.Array.data[0].Array.data[258].x
|
||||
value: -50.21778
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 60970885189888988, guid: 0514a38f22bae454d821a12517a141c4,
|
||||
type: 2}
|
||||
propertyPath: m_Points.m_Paths.Array.data[0].Array.data[255].y
|
||||
value: 55.6062
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 60970885189888988, guid: 0514a38f22bae454d821a12517a141c4,
|
||||
type: 2}
|
||||
propertyPath: m_Points.m_Paths.Array.data[0].Array.data[255].x
|
||||
value: 50.191864
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_SourcePrefab: {fileID: 100100000, guid: 0514a38f22bae454d821a12517a141c4, type: 2}
|
||||
m_IsPrefabAsset: 0
|
||||
|
@ -303,6 +308,11 @@ Prefab:
|
|||
propertyPath: m_RootOrder
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 114441698435220922, guid: 4dc0408b236da9847b1c799161bbd70a,
|
||||
type: 2}
|
||||
propertyPath: speed
|
||||
value: 0.002
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_SourcePrefab: {fileID: 100100000, guid: 4dc0408b236da9847b1c799161bbd70a, type: 2}
|
||||
m_IsPrefabAsset: 0
|
||||
|
@ -311,3 +321,96 @@ GameObject:
|
|||
m_CorrespondingSourceObject: {fileID: 1506768218425990, guid: 1cf703958a669d942a42326499701367,
|
||||
type: 2}
|
||||
m_PrefabInternal: {fileID: 244194707}
|
||||
--- !u!4 &1410052127 stripped
|
||||
Transform:
|
||||
m_CorrespondingSourceObject: {fileID: 4279439219186522, guid: 1cf703958a669d942a42326499701367,
|
||||
type: 2}
|
||||
m_PrefabInternal: {fileID: 244194707}
|
||||
--- !u!1 &1570992614
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 1570992615}
|
||||
- component: {fileID: 1570992616}
|
||||
- component: {fileID: 1570992617}
|
||||
m_Layer: 0
|
||||
m_Name: Cannon
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &1570992615
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 1570992614}
|
||||
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
||||
m_LocalPosition: {x: 0.214, y: 0.428, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 1410052127}
|
||||
m_RootOrder: 3
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!212 &1570992616
|
||||
SpriteRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 1570992614}
|
||||
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: 1
|
||||
m_Sprite: {fileID: 21300000, guid: bdd08b099cc1c614096f43a9ccf99b59, 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.48, y: 1.02}
|
||||
m_AdaptiveModeThreshold: 0.5
|
||||
m_SpriteTileMode: 0
|
||||
m_WasSpriteAssigned: 1
|
||||
m_MaskInteraction: 0
|
||||
m_SpriteSortPoint: 0
|
||||
--- !u!114 &1570992617
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 1570992614}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 7bc860ed21bbef247869c07bd6fef82f, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
rotationSpeed: 90
|
||||
|
|
19
Assets/Scripts/Cannon.cs
Normal file
19
Assets/Scripts/Cannon.cs
Normal file
|
@ -0,0 +1,19 @@
|
|||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class Cannon : MonoBehaviour {
|
||||
|
||||
public float rotationSpeed;
|
||||
|
||||
void Update () {
|
||||
if(Input.GetKey(KeyCode.W))
|
||||
{
|
||||
transform.Rotate(Vector3.forward * Time.deltaTime * rotationSpeed);
|
||||
}
|
||||
if (Input.GetKey(KeyCode.S))
|
||||
{
|
||||
transform.Rotate(Vector3.back * Time.deltaTime * rotationSpeed);
|
||||
}
|
||||
}
|
||||
}
|
11
Assets/Scripts/Cannon.cs.meta
generated
Normal file
11
Assets/Scripts/Cannon.cs.meta
generated
Normal file
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 7bc860ed21bbef247869c07bd6fef82f
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -5,8 +5,14 @@ using UnityEngine;
|
|||
public class FollowGameObject : MonoBehaviour {
|
||||
|
||||
public GameObject target;
|
||||
public Vector2 limitFirstCorner;
|
||||
public Vector2 limitSecondCorner;
|
||||
|
||||
void Update () {
|
||||
transform.position = new Vector3(target.transform.position.x, target.transform.position.y, -1f);
|
||||
void Update () {
|
||||
transform.position = new Vector3(
|
||||
Mathf.Clamp(target.transform.position.x, limitFirstCorner.x, limitSecondCorner.x),
|
||||
Mathf.Clamp(target.transform.position.y, limitFirstCorner.y, limitSecondCorner.y),
|
||||
-1f
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
20
Assets/Scripts/Linker.cs
Normal file
20
Assets/Scripts/Linker.cs
Normal file
|
@ -0,0 +1,20 @@
|
|||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class Linker : MonoBehaviour
|
||||
{
|
||||
public GameObject firstObject;
|
||||
public GameObject secondObject;
|
||||
private LineRenderer lineRenderer;
|
||||
|
||||
void Start()
|
||||
{
|
||||
lineRenderer = GetComponent<LineRenderer>();
|
||||
}
|
||||
|
||||
void Update () {
|
||||
lineRenderer.SetPosition(0, firstObject.transform.position);
|
||||
lineRenderer.SetPosition(1, secondObject.transform.position);
|
||||
}
|
||||
}
|
11
Assets/Scripts/Linker.cs.meta
generated
Normal file
11
Assets/Scripts/Linker.cs.meta
generated
Normal file
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 6752fc4d1bb4f6a4d8a65512c48bb059
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
4
Assets/Sprites/Cannon.png.meta
generated
4
Assets/Sprites/Cannon.png.meta
generated
|
@ -43,8 +43,8 @@ TextureImporter:
|
|||
spriteMode: 1
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
alignment: 9
|
||||
spritePivot: {x: 0.44221053, y: 0.3018648}
|
||||
spritePixelsToUnits: 50
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
|
|
2
Assets/Sprites/Harpoon.png.meta
generated
2
Assets/Sprites/Harpoon.png.meta
generated
|
@ -44,7 +44,7 @@ TextureImporter:
|
|||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 9
|
||||
spritePivot: {x: 0.008101872, y: 0.6041666}
|
||||
spritePivot: {x: 0.94438404, y: 0.38834447}
|
||||
spritePixelsToUnits: 50
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
|
|
Loading…
Reference in a new issue