mirror of
https://github.com/Steffo99/bleach-beach.git
synced 2024-12-04 19:04:19 +00:00
Mash of stuff
This commit is contained in:
parent
3b28091bde
commit
531a76ad09
30 changed files with 543 additions and 105 deletions
8
Assets/Animations.meta
generated
Normal file
8
Assets/Animations.meta
generated
Normal file
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 7c972db0274d979489f49c110be83695
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
11
Assets/Animations/Fish.controller
Normal file
11
Assets/Animations/Fish.controller
Normal file
|
@ -0,0 +1,11 @@
|
|||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!91 &9100000
|
||||
AnimatorController:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_Name: _Fish_
|
||||
serializedVersion: 5
|
||||
m_AnimatorParameters: []
|
||||
m_AnimatorLayers: []
|
8
Assets/Animations/Fish.controller.meta
generated
Normal file
8
Assets/Animations/Fish.controller.meta
generated
Normal file
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: bad0282c8547e9444b3d82126cb74259
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 9100000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
53
Assets/Animations/SwimmingFish.anim
Normal file
53
Assets/Animations/SwimmingFish.anim
Normal file
|
@ -0,0 +1,53 @@
|
|||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!74 &7400000
|
||||
AnimationClip:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_Name: SwimmingFish
|
||||
serializedVersion: 6
|
||||
m_Legacy: 0
|
||||
m_Compressed: 0
|
||||
m_UseHighQualityCurve: 1
|
||||
m_RotationCurves: []
|
||||
m_CompressedRotationCurves: []
|
||||
m_EulerCurves: []
|
||||
m_PositionCurves: []
|
||||
m_ScaleCurves: []
|
||||
m_FloatCurves: []
|
||||
m_PPtrCurves: []
|
||||
m_SampleRate: 60
|
||||
m_WrapMode: 0
|
||||
m_Bounds:
|
||||
m_Center: {x: 0, y: 0, z: 0}
|
||||
m_Extent: {x: 0, y: 0, z: 0}
|
||||
m_ClipBindingConstant:
|
||||
genericBindings: []
|
||||
pptrCurveMapping: []
|
||||
m_AnimationClipSettings:
|
||||
serializedVersion: 2
|
||||
m_AdditiveReferencePoseClip: {fileID: 0}
|
||||
m_AdditiveReferencePoseTime: 0
|
||||
m_StartTime: 0
|
||||
m_StopTime: 1
|
||||
m_OrientationOffsetY: 0
|
||||
m_Level: 0
|
||||
m_CycleOffset: 0
|
||||
m_HasAdditiveReferencePose: 0
|
||||
m_LoopTime: 1
|
||||
m_LoopBlend: 0
|
||||
m_LoopBlendOrientation: 0
|
||||
m_LoopBlendPositionY: 0
|
||||
m_LoopBlendPositionXZ: 0
|
||||
m_KeepOriginalOrientation: 0
|
||||
m_KeepOriginalPositionY: 1
|
||||
m_KeepOriginalPositionXZ: 0
|
||||
m_HeightFromFeet: 0
|
||||
m_Mirror: 0
|
||||
m_EditorCurves: []
|
||||
m_EulerEditorCurves: []
|
||||
m_HasGenericRootTransform: 0
|
||||
m_HasMotionFloatCurves: 0
|
||||
m_GenerateMotionCurves: 0
|
||||
m_Events: []
|
8
Assets/Animations/SwimmingFish.anim.meta
generated
Normal file
8
Assets/Animations/SwimmingFish.anim.meta
generated
Normal file
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 69bbcb7123e43354aa536335d9a6ce4b
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 7400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
8
Assets/Materials.meta
generated
Normal file
8
Assets/Materials.meta
generated
Normal file
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 626cfc1c46fc40343b6904a98ff25885
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
76
Assets/Materials/Chain.mat
generated
Normal file
76
Assets/Materials/Chain.mat
generated
Normal file
|
@ -0,0 +1,76 @@
|
|||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!21 &2100000
|
||||
Material:
|
||||
serializedVersion: 6
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_Name: Chain
|
||||
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_ShaderKeywords:
|
||||
m_LightmapFlags: 4
|
||||
m_EnableInstancingVariants: 0
|
||||
m_DoubleSidedGI: 0
|
||||
m_CustomRenderQueue: -1
|
||||
stringTagMap: {}
|
||||
disabledShaderPasses: []
|
||||
m_SavedProperties:
|
||||
serializedVersion: 3
|
||||
m_TexEnvs:
|
||||
- _BumpMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailAlbedoMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailMask:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailNormalMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _EmissionMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _MainTex:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _MetallicGlossMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _OcclusionMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _ParallaxMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
m_Floats:
|
||||
- _BumpScale: 1
|
||||
- _Cutoff: 0.5
|
||||
- _DetailNormalMapScale: 1
|
||||
- _DstBlend: 0
|
||||
- _GlossMapScale: 1
|
||||
- _Glossiness: 0.5
|
||||
- _GlossyReflections: 1
|
||||
- _Metallic: 0
|
||||
- _Mode: 0
|
||||
- _OcclusionStrength: 1
|
||||
- _Parallax: 0.02
|
||||
- _SmoothnessTextureChannel: 0
|
||||
- _SpecularHighlights: 1
|
||||
- _SrcBlend: 1
|
||||
- _UVSec: 0
|
||||
- _ZWrite: 1
|
||||
m_Colors:
|
||||
- _Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
8
Assets/Materials/Chain.mat.meta
generated
Normal file
8
Assets/Materials/Chain.mat.meta
generated
Normal file
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 9009a0cf56984e848b674cf0ba6637b8
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 2100000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
2
Assets/Prefabs/Camera.prefab
generated
2
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: -29.571674, y: 14.972714, z: -1}
|
||||
m_LocalPosition: {x: -4.568595, y: 35.28643, z: -1}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
|
|
6
Assets/Prefabs/Chain Link.prefab
generated
6
Assets/Prefabs/Chain Link.prefab
generated
|
@ -36,7 +36,7 @@ Transform:
|
|||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 1662540403241760}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 9.955, y: 115.41818, z: -0.07543945}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
|
@ -53,7 +53,7 @@ Rigidbody2D:
|
|||
m_Simulated: 1
|
||||
m_UseFullKinematicContacts: 0
|
||||
m_UseAutoMass: 0
|
||||
m_Mass: 1
|
||||
m_Mass: 0.001
|
||||
m_LinearDrag: 0
|
||||
m_AngularDrag: 0.05
|
||||
m_GravityScale: 1
|
||||
|
@ -116,7 +116,7 @@ HingeJoint2D:
|
|||
m_GameObject: {fileID: 1662540403241760}
|
||||
m_Enabled: 1
|
||||
serializedVersion: 4
|
||||
m_EnableCollision: 0
|
||||
m_EnableCollision: 1
|
||||
m_ConnectedRigidBody: {fileID: 0}
|
||||
m_BreakForce: Infinity
|
||||
m_BreakTorque: Infinity
|
||||
|
|
2
Assets/Prefabs/ChainAuto.prefab
generated
2
Assets/Prefabs/ChainAuto.prefab
generated
|
@ -34,7 +34,7 @@ Transform:
|
|||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 1244978095539468}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 2.3629713, y: 38.1587, z: 0.18701172}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
|
|
107
Assets/Prefabs/Fish.prefab
generated
Normal file
107
Assets/Prefabs/Fish.prefab
generated
Normal file
|
@ -0,0 +1,107 @@
|
|||
%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: 1615301965237016}
|
||||
m_IsPrefabAsset: 1
|
||||
--- !u!1 &1615301965237016
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 4139569998151354}
|
||||
- component: {fileID: 95068346191508518}
|
||||
- component: {fileID: 212894136892818758}
|
||||
m_Layer: 0
|
||||
m_Name: Fish
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &4139569998151354
|
||||
Transform:
|
||||
m_ObjectHideFlags: 1
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 1615301965237016}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: -12.660833, y: 34.92962, 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!95 &95068346191508518
|
||||
Animator:
|
||||
serializedVersion: 3
|
||||
m_ObjectHideFlags: 1
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 1615301965237016}
|
||||
m_Enabled: 1
|
||||
m_Avatar: {fileID: 0}
|
||||
m_Controller: {fileID: 9100000, guid: bad0282c8547e9444b3d82126cb74259, type: 2}
|
||||
m_CullingMode: 0
|
||||
m_UpdateMode: 0
|
||||
m_ApplyRootMotion: 0
|
||||
m_LinearVelocityBlending: 0
|
||||
m_WarningMessage:
|
||||
m_HasTransformHierarchy: 1
|
||||
m_AllowConstantClipSamplingOptimization: 1
|
||||
m_KeepAnimatorControllerStateOnDisable: 0
|
||||
--- !u!212 &212894136892818758
|
||||
SpriteRenderer:
|
||||
m_ObjectHideFlags: 1
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 1615301965237016}
|
||||
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: 5196555e6d71c154a926591247bbc9ae, 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.62, y: 0.38}
|
||||
m_AdaptiveModeThreshold: 0.5
|
||||
m_SpriteTileMode: 0
|
||||
m_WasSpriteAssigned: 1
|
||||
m_MaskInteraction: 0
|
||||
m_SpriteSortPoint: 0
|
10
Assets/Prefabs/Harpoon.prefab
generated
10
Assets/Prefabs/Harpoon.prefab
generated
|
@ -36,7 +36,7 @@ Transform:
|
|||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 1172082933451472}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0.7071068, w: 0.7071068}
|
||||
m_LocalPosition: {x: 7.5735884, y: 76.737595, z: -0.07543945}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
|
@ -53,7 +53,7 @@ Rigidbody2D:
|
|||
m_Simulated: 1
|
||||
m_UseFullKinematicContacts: 0
|
||||
m_UseAutoMass: 0
|
||||
m_Mass: 10
|
||||
m_Mass: 0.1
|
||||
m_LinearDrag: 0
|
||||
m_AngularDrag: 0.05
|
||||
m_GravityScale: 1
|
||||
|
@ -127,7 +127,7 @@ HingeJoint2D:
|
|||
m_Motor:
|
||||
m_MotorSpeed: 0
|
||||
m_MaximumMotorForce: 10000
|
||||
m_UseLimits: 0
|
||||
m_UseLimits: 1
|
||||
m_AngleLimits:
|
||||
m_LowerAngle: 0
|
||||
m_UpperAngle: 359
|
||||
m_LowerAngle: -70
|
||||
m_UpperAngle: 250
|
||||
|
|
60
Assets/Prefabs/Ship.prefab
generated
60
Assets/Prefabs/Ship.prefab
generated
|
@ -11,6 +11,22 @@ Prefab:
|
|||
m_SourcePrefab: {fileID: 0}
|
||||
m_RootGameObject: {fileID: 1506768218425990}
|
||||
m_IsPrefabAsset: 1
|
||||
--- !u!1 &1153545951897974
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 4967707696773828}
|
||||
- component: {fileID: 114498127896577538}
|
||||
m_Layer: 0
|
||||
m_Name: ChainAuto
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 0
|
||||
--- !u!1 &1396569450907664
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
|
@ -66,10 +82,11 @@ Transform:
|
|||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 1506768218425990}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0.42749164, w: -0.9040193}
|
||||
m_LocalPosition: {x: -29.571674, y: 14.972714, z: 0}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: -3.37, y: 50.53, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children:
|
||||
- {fileID: 4967707696773828}
|
||||
- {fileID: 4419769467158982}
|
||||
- {fileID: 4811992088834386}
|
||||
m_Father: {fileID: 0}
|
||||
|
@ -83,10 +100,10 @@ Transform:
|
|||
m_GameObject: {fileID: 1396569450907664}
|
||||
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
||||
m_LocalPosition: {x: 0.245, y: -0.382, z: 0}
|
||||
m_LocalScale: {x: 1.4615, y: 1.4615, z: 1.4615}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 4279439219186522}
|
||||
m_RootOrder: 0
|
||||
m_RootOrder: 1
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!4 &4811992088834386
|
||||
Transform:
|
||||
|
@ -99,7 +116,20 @@ Transform:
|
|||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 4279439219186522}
|
||||
m_RootOrder: 1
|
||||
m_RootOrder: 2
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!4 &4967707696773828
|
||||
Transform:
|
||||
m_ObjectHideFlags: 1
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 1153545951897974}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0.163, y: 0.114, z: 0.18701172}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 4279439219186522}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!50 &50107883579770240
|
||||
Rigidbody2D:
|
||||
|
@ -120,7 +150,7 @@ Rigidbody2D:
|
|||
m_Interpolate: 0
|
||||
m_SleepingMode: 1
|
||||
m_CollisionDetection: 0
|
||||
m_Constraints: 0
|
||||
m_Constraints: 3
|
||||
--- !u!60 &60759684842668732
|
||||
PolygonCollider2D:
|
||||
m_ObjectHideFlags: 1
|
||||
|
@ -149,6 +179,22 @@ PolygonCollider2D:
|
|||
- {x: 0.78310096, y: -0.51465136}
|
||||
- {x: 1.3078427, y: 0.32390344}
|
||||
- {x: -1.2722943, y: 0.3283955}
|
||||
--- !u!114 &114498127896577538
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 1153545951897974}
|
||||
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.85, z: 0}
|
||||
chainNumber: 50
|
||||
--- !u!114 &114893472868460232
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
|
@ -160,7 +206,7 @@ MonoBehaviour:
|
|||
m_Script: {fileID: 11500000, guid: 91d88e1722c056f47a710df9123b44a9, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
rb: {fileID: 50107883579770240}
|
||||
hull: {fileID: 1396569450907664}
|
||||
horizontalShipSpeed: 10
|
||||
verticalShipSpeed: 18
|
||||
--- !u!212 &212928515413584804
|
||||
|
|
41
Assets/Prefabs/_Fish_.prefab
generated
41
Assets/Prefabs/_Fish_.prefab
generated
|
@ -1,41 +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: 1615301965237016}
|
||||
m_IsPrefabAsset: 1
|
||||
--- !u!1 &1615301965237016
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 4139569998151354}
|
||||
m_Layer: 0
|
||||
m_Name: _Fish_
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 2974397684917235467, guid: 0000000000000000d000000000000000, type: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &4139569998151354
|
||||
Transform:
|
||||
m_ObjectHideFlags: 1
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 1615301965237016}
|
||||
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}
|
39
Assets/Scenes/Game.unity
generated
39
Assets/Scenes/Game.unity
generated
|
@ -127,11 +127,11 @@ Prefab:
|
|||
m_Modifications:
|
||||
- target: {fileID: 4279439219186522, guid: 1cf703958a669d942a42326499701367, type: 2}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: -4.126
|
||||
value: -3.37
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4279439219186522, guid: 1cf703958a669d942a42326499701367, type: 2}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: 36.531
|
||||
value: 50.53
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4279439219186522, guid: 1cf703958a669d942a42326499701367, type: 2}
|
||||
propertyPath: m_LocalPosition.z
|
||||
|
@ -157,6 +157,31 @@ Prefab:
|
|||
propertyPath: m_RootOrder
|
||||
value: 2
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4419769467158982, guid: 1cf703958a669d942a42326499701367, type: 2}
|
||||
propertyPath: m_LocalScale.x
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4419769467158982, guid: 1cf703958a669d942a42326499701367, type: 2}
|
||||
propertyPath: m_LocalScale.y
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4419769467158982, guid: 1cf703958a669d942a42326499701367, type: 2}
|
||||
propertyPath: m_LocalScale.z
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4967707696773828, guid: 1cf703958a669d942a42326499701367, type: 2}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: 0.163
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4967707696773828, guid: 1cf703958a669d942a42326499701367, type: 2}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: 0.114
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 50107883579770240, guid: 1cf703958a669d942a42326499701367,
|
||||
type: 2}
|
||||
propertyPath: m_Constraints
|
||||
value: 3
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_SourcePrefab: {fileID: 100100000, guid: 1cf703958a669d942a42326499701367, type: 2}
|
||||
m_IsPrefabAsset: 0
|
||||
|
@ -209,6 +234,16 @@ Prefab:
|
|||
propertyPath: orthographic size
|
||||
value: 11
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 20610604938940038, guid: acb6270a21e7fa744878210a4df90d27,
|
||||
type: 2}
|
||||
propertyPath: m_projectionMatrixMode
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 20610604938940038, guid: acb6270a21e7fa744878210a4df90d27,
|
||||
type: 2}
|
||||
propertyPath: field of view
|
||||
value: 150
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_SourcePrefab: {fileID: 100100000, guid: acb6270a21e7fa744878210a4df90d27, type: 2}
|
||||
m_IsPrefabAsset: 0
|
||||
|
|
|
@ -11,16 +11,40 @@ public class ChainLinker : MonoBehaviour {
|
|||
public int chainNumber;
|
||||
|
||||
void Start () {
|
||||
GameObject tailInstance = Instantiate(tail, transform);
|
||||
GameObject nextChain = Instantiate(chain, transform);
|
||||
nextChain.transform.position = tailInstance.transform.position + tailOffset;
|
||||
tailInstance.GetComponent<HingeJoint2D>().connectedBody = nextChain.GetComponent<Rigidbody2D>();
|
||||
GameObject lastChain = null;
|
||||
GameObject nextChain = null;
|
||||
|
||||
for(int i = 0; i < chainNumber - 1; i++)
|
||||
{
|
||||
GameObject lastChain = nextChain;
|
||||
if (i > 0)
|
||||
{
|
||||
lastChain = nextChain;
|
||||
}
|
||||
if (i == chainNumber - 2)
|
||||
{
|
||||
nextChain = Instantiate(tail, transform);
|
||||
nextChain.transform.position = lastChain.transform.position + tailOffset;
|
||||
}
|
||||
else
|
||||
{
|
||||
nextChain = Instantiate(chain, transform);
|
||||
if (lastChain != null)
|
||||
{
|
||||
nextChain.transform.position = lastChain.transform.position + chainOffset;
|
||||
lastChain.GetComponent<HingeJoint2D>().connectedBody = nextChain.GetComponent<Rigidbody2D>();
|
||||
}
|
||||
else
|
||||
{
|
||||
nextChain.transform.position = transform.position;
|
||||
}
|
||||
}
|
||||
if (lastChain != null)
|
||||
{
|
||||
nextChain.GetComponent<HingeJoint2D>().connectedBody = lastChain.GetComponent<Rigidbody2D>();
|
||||
}
|
||||
else
|
||||
{
|
||||
nextChain.GetComponent<HingeJoint2D>().connectedBody = GetComponentInParent<Rigidbody2D>();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -17,7 +17,8 @@ public class FishSpawner : MonoBehaviour {
|
|||
timeToSpawn -= Time.deltaTime;
|
||||
if(timeToSpawn <= 0)
|
||||
{
|
||||
Instantiate(fish);
|
||||
GameObject newFish = Instantiate(fish);
|
||||
newFish.transform.position = transform.position;
|
||||
timeToSpawn = Random.Range(spawnTime - randomFactor, spawnTime + randomFactor);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -4,7 +4,8 @@ using UnityEngine;
|
|||
|
||||
public class PlayerMovement : MonoBehaviour {
|
||||
|
||||
public Rigidbody2D rb;
|
||||
private Rigidbody2D rb;
|
||||
public GameObject hull;
|
||||
public float horizontalShipSpeed = 50;
|
||||
public float verticalShipSpeed = 20;
|
||||
|
||||
|
@ -15,31 +16,17 @@ public class PlayerMovement : MonoBehaviour {
|
|||
void FixedUpdate () {
|
||||
if (Input.GetKey(KeyCode.LeftArrow))
|
||||
{
|
||||
transform.localScale = new Vector3(-1, 1, 1);
|
||||
if(Input.GetKey(KeyCode.RightShift))
|
||||
{
|
||||
rb.AddTorque(horizontalShipSpeed);
|
||||
}
|
||||
else
|
||||
{
|
||||
hull.transform.localScale = new Vector3(-1, 1, 1);
|
||||
rb.AddForce(Vector2.right * -horizontalShipSpeed);
|
||||
}
|
||||
}
|
||||
if (Input.GetKey(KeyCode.RightArrow))
|
||||
{
|
||||
transform.localScale = new Vector3(1, 1, 1);
|
||||
if (Input.GetKey(KeyCode.RightShift))
|
||||
{
|
||||
rb.AddTorque(-horizontalShipSpeed);
|
||||
}
|
||||
else
|
||||
{
|
||||
hull.transform.localScale = new Vector3(1, 1, 1);
|
||||
rb.AddForce(Vector2.right * horizontalShipSpeed);
|
||||
}
|
||||
}
|
||||
if (Input.GetKey(KeyCode.UpArrow))
|
||||
{
|
||||
rb.AddForce(transform.up * verticalShipSpeed);
|
||||
rb.AddForce(Vector2.up * verticalShipSpeed);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
22
Assets/Scripts/RampinoTester.cs
Normal file
22
Assets/Scripts/RampinoTester.cs
Normal file
|
@ -0,0 +1,22 @@
|
|||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class RampinoTester : MonoBehaviour
|
||||
{
|
||||
|
||||
public Rigidbody2D rb;
|
||||
|
||||
void Start()
|
||||
{
|
||||
rb = GetComponent<Rigidbody2D>();
|
||||
}
|
||||
|
||||
void Update()
|
||||
{
|
||||
if (Input.GetKey(KeyCode.Space))
|
||||
{
|
||||
rb.AddForce(Vector2.up * 20f);
|
||||
}
|
||||
}
|
||||
}
|
11
Assets/Scripts/RampinoTester.cs.meta
generated
Normal file
11
Assets/Scripts/RampinoTester.cs.meta
generated
Normal file
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 710b122dd43e80a4e9a381e370a91d3f
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
BIN
Assets/Sprites/ChainLink.png
(Stored with Git LFS)
BIN
Assets/Sprites/ChainLink.png
(Stored with Git LFS)
Binary file not shown.
12
Assets/Sprites/ChainLink.png.meta
generated
12
Assets/Sprites/ChainLink.png.meta
generated
|
@ -31,12 +31,12 @@ TextureImporter:
|
|||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: -1
|
||||
filterMode: 0
|
||||
aniso: -1
|
||||
mipBias: -100
|
||||
wrapU: 1
|
||||
wrapV: 1
|
||||
wrapW: 1
|
||||
wrapU: 0
|
||||
wrapV: 0
|
||||
wrapW: 0
|
||||
nPOTScale: 0
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
|
@ -44,9 +44,9 @@ TextureImporter:
|
|||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.42222226, y: 0.9975308}
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 50
|
||||
spriteBorder: {x: 0, y: 0, z: 1, w: 0}
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 1}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 1
|
||||
|
|
BIN
Assets/Sprites/Fish1.png
(Stored with Git LFS)
Normal file
BIN
Assets/Sprites/Fish1.png
(Stored with Git LFS)
Normal file
Binary file not shown.
|
@ -45,7 +45,7 @@ TextureImporter:
|
|||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spritePixelsToUnits: 50
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
|
@ -69,6 +69,39 @@ TextureImporter:
|
|||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
- serializedVersion: 2
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
- serializedVersion: 2
|
||||
buildTarget: Android
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
- serializedVersion: 2
|
||||
buildTarget: WebGL
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
BIN
Assets/Sprites/Fish2.png
(Stored with Git LFS)
Normal file
BIN
Assets/Sprites/Fish2.png
(Stored with Git LFS)
Normal file
Binary file not shown.
|
@ -45,7 +45,7 @@ TextureImporter:
|
|||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spritePixelsToUnits: 50
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
|
@ -69,6 +69,39 @@ TextureImporter:
|
|||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
- serializedVersion: 2
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
- serializedVersion: 2
|
||||
buildTarget: Android
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
- serializedVersion: 2
|
||||
buildTarget: WebGL
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
BIN
Assets/Sprites/pesce1.png
(Stored with Git LFS)
BIN
Assets/Sprites/pesce1.png
(Stored with Git LFS)
Binary file not shown.
BIN
Assets/Sprites/pesce2.png
(Stored with Git LFS)
BIN
Assets/Sprites/pesce2.png
(Stored with Git LFS)
Binary file not shown.
Loading…
Reference in a new issue