1
Fork 0
mirror of https://github.com/Steffo99/keep-everything-alive.git synced 2024-11-25 02:34:18 +00:00
This commit is contained in:
Francesca Peres 2020-04-20 22:36:04 +02:00
commit 56f9fa4214
28 changed files with 1383 additions and 5440 deletions

File diff suppressed because it is too large Load diff

View file

@ -1,246 +1,48 @@
%YAML 1.1 %YAML 1.1
%TAG !u! tag:unity3d.com,2011: %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: 1506768218425990}
m_IsPrefabAsset: 1
--- !u!1 &1396569450907664 --- !u!1 &1396569450907664
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0} m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000} m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6 serializedVersion: 6
m_Component: m_Component:
- component: {fileID: 4419769467158982} - component: {fileID: 4419769467158982}
- component: {fileID: 212928515413584804} - component: {fileID: 212928515413584804}
- component: {fileID: 60759684842668732} - component: {fileID: 60759684842668732}
m_Layer: 8 - component: {fileID: 3034461388823169807}
- component: {fileID: 3034461388823169806}
- component: {fileID: 4565137827239957030}
- component: {fileID: 943641692102070489}
- component: {fileID: 4799560431991595077}
m_Layer: 0
m_Name: Hull m_Name: Hull
m_TagString: Untagged m_TagString: Untagged
m_Icon: {fileID: 0} m_Icon: {fileID: 0}
m_NavMeshLayer: 0 m_NavMeshLayer: 0
m_StaticEditorFlags: 0 m_StaticEditorFlags: 0
m_IsActive: 1 m_IsActive: 1
--- !u!1 &1506768218425990
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
serializedVersion: 6
m_Component:
- component: {fileID: 4279439219186522}
- component: {fileID: 50107883579770240}
- component: {fileID: 114893472868460232}
- component: {fileID: 114815898204907146}
- component: {fileID: 114320476920337370}
- component: {fileID: 114870102256947850}
m_Layer: 8
m_Name: Ship
m_TagString: Player
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!1 &1707044546218068
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
serializedVersion: 6
m_Component:
- component: {fileID: 4811992088834386}
m_Layer: 8
m_Name: Fish Pile
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &4279439219186522
Transform:
m_ObjectHideFlags: 1
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1506768218425990}
m_LocalRotation: {x: -0, y: -0, z: 0.049957126, w: -0.99875134}
m_LocalPosition: {x: -14.61, y: 9.41, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:
- {fileID: 4419769467158982}
- {fileID: 4811992088834386}
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: -5.727}
--- !u!4 &4419769467158982 --- !u!4 &4419769467158982
Transform: Transform:
m_ObjectHideFlags: 1 m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0} m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000} m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1396569450907664} m_GameObject: {fileID: 1396569450907664}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 22.3, y: -0.38, z: 0} m_LocalPosition: {x: 6.65, y: -1.13, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1} m_LocalScale: {x: 1, y: 1, z: 0}
m_Children: [] m_Children: []
m_Father: {fileID: 4279439219186522} m_Father: {fileID: 4279439219186522}
m_RootOrder: 0 m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!4 &4811992088834386
Transform:
m_ObjectHideFlags: 1
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1707044546218068}
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: 4279439219186522}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!50 &50107883579770240
Rigidbody2D:
serializedVersion: 4
m_ObjectHideFlags: 1
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1506768218425990}
m_BodyType: 0
m_Simulated: 1
m_UseFullKinematicContacts: 0
m_UseAutoMass: 0
m_Mass: 2
m_LinearDrag: 1
m_AngularDrag: 1
m_GravityScale: 1
m_Material: {fileID: 6200000, guid: 704f912fbe8bba74ebedd5a5f7bff08f, type: 2}
m_Interpolate: 0
m_SleepingMode: 1
m_CollisionDetection: 0
m_Constraints: 0
--- !u!60 &60759684842668732
PolygonCollider2D:
m_ObjectHideFlags: 1
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1396569450907664}
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: 2.68, y: 1.3}
newSize: {x: 1.34, y: 0.65}
adaptiveTilingThreshold: 0.5
drawMode: 0
adaptiveTiling: 0
m_AutoTiling: 0
m_Points:
m_Paths:
- - {x: -1.2726313, y: -0.5143094}
- {x: 0.78310096, y: -0.51465136}
- {x: 1.3078427, y: 0.32390344}
- {x: -1.2722943, y: 0.3283955}
--- !u!114 &114320476920337370
MonoBehaviour:
m_ObjectHideFlags: 1
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1506768218425990}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 372142912, guid: dc443db3e92b4983b9738c1131f555cb, type: 3}
m_Name:
m_EditorClassIdentifier:
m_SceneId:
m_Value: 0
m_AssetId:
i0: 28
i1: 247
i2: 3
i3: 149
i4: 138
i5: 102
i6: 157
i7: 148
i8: 42
i9: 66
i10: 50
i11: 100
i12: 153
i13: 112
i14: 19
i15: 103
m_ServerOnly: 0
m_LocalPlayerAuthority: 1
--- !u!114 &114815898204907146
MonoBehaviour:
m_ObjectHideFlags: 1
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1506768218425990}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: e1de68aef1b6a89419a36f3455e25bf3, type: 3}
m_Name:
m_EditorClassIdentifier:
fishCaught: 0
fishPileSprites: []
fishPileStages:
fishPile: {fileID: 0}
--- !u!114 &114870102256947850
MonoBehaviour:
m_ObjectHideFlags: 1
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1506768218425990}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: -1768714887, guid: dc443db3e92b4983b9738c1131f555cb, type: 3}
m_Name:
m_EditorClassIdentifier:
m_TransformSyncMode: 2
m_SendInterval: 0.1
m_SyncRotationAxis: 3
m_RotationSyncCompression: 0
m_SyncSpin: 0
m_MovementTheshold: 0.001
m_VelocityThreshold: 0.0001
m_SnapThreshold: 5
m_InterpolateRotation: 1
m_InterpolateMovement: 1
--- !u!114 &114893472868460232
MonoBehaviour:
m_ObjectHideFlags: 1
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1506768218425990}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 91d88e1722c056f47a710df9123b44a9, type: 3}
m_Name:
m_EditorClassIdentifier:
hull: {fileID: 1396569450907664}
horizontalShipSpeed: 5
verticalShipSpeed: 30
maxJetFuel: 2
jetFuelRechargeSpeed: 0.1
--- !u!212 &212928515413584804 --- !u!212 &212928515413584804
SpriteRenderer: SpriteRenderer:
m_ObjectHideFlags: 1 m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0} m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000} m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1396569450907664} m_GameObject: {fileID: 1396569450907664}
m_Enabled: 1 m_Enabled: 1
m_CastShadows: 0 m_CastShadows: 0
@ -249,7 +51,9 @@ SpriteRenderer:
m_MotionVectors: 1 m_MotionVectors: 1
m_LightProbeUsage: 1 m_LightProbeUsage: 1
m_ReflectionProbeUsage: 1 m_ReflectionProbeUsage: 1
m_RayTracingMode: 0
m_RenderingLayerMask: 4294967295 m_RenderingLayerMask: 4294967295
m_RendererPriority: 0
m_Materials: m_Materials:
- {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} - {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0}
m_StaticBatchInfo: m_StaticBatchInfo:
@ -259,6 +63,7 @@ SpriteRenderer:
m_ProbeAnchor: {fileID: 0} m_ProbeAnchor: {fileID: 0}
m_LightProbeVolumeOverride: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0}
m_ScaleInLightmap: 1 m_ScaleInLightmap: 1
m_ReceiveGI: 1
m_PreserveUVs: 0 m_PreserveUVs: 0
m_IgnoreNormalsForChartDetection: 0 m_IgnoreNormalsForChartDetection: 0
m_ImportantGI: 0 m_ImportantGI: 0
@ -282,3 +87,350 @@ SpriteRenderer:
m_WasSpriteAssigned: 1 m_WasSpriteAssigned: 1
m_MaskInteraction: 0 m_MaskInteraction: 0
m_SpriteSortPoint: 0 m_SpriteSortPoint: 0
--- !u!60 &60759684842668732
PolygonCollider2D:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1396569450907664}
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: 2.68, y: 1.3}
newSize: {x: 1.34, y: 0.65}
adaptiveTilingThreshold: 0.5
drawMode: 0
adaptiveTiling: 0
m_AutoTiling: 0
m_Points:
m_Paths:
- - {x: -1.2726313, y: -0.5143094}
- {x: 0.78310096, y: -0.51465136}
- {x: 1.3078427, y: 0.32390344}
- {x: -1.2722943, y: 0.3283955}
--- !u!114 &3034461388823169807
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1396569450907664}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 3942a3e38c32eed40bff470e6bbddf42, type: 3}
m_Name:
m_EditorClassIdentifier:
activationDelay: 0.5
mode: 1
--- !u!114 &3034461388823169806
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1396569450907664}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 52bfd95665577fe42b21384ac7bff02f, type: 3}
m_Name:
m_EditorClassIdentifier:
color: {r: 1, g: 0, b: 0, a: 1}
activationDelay: 0.5
--- !u!82 &4565137827239957030
AudioSource:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1396569450907664}
m_Enabled: 1
serializedVersion: 4
OutputAudioMixerGroup: {fileID: 0}
m_audioClip: {fileID: 8300000, guid: 400ace27afa668f49a3fba37deae08d1, type: 3}
m_PlayOnAwake: 0
m_Volume: 1
m_Pitch: 1
Loop: 0
Mute: 0
Spatialize: 0
SpatializePostEffects: 0
Priority: 128
DopplerLevel: 1
MinDistance: 1
MaxDistance: 500
Pan2D: 0
rolloffMode: 0
BypassEffects: 0
BypassListenerEffects: 0
BypassReverbZones: 0
rolloffCustomCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 1
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
- serializedVersion: 3
time: 1
value: 0
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
panLevelCustomCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 0
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
spreadCustomCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 0
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
reverbZoneMixCustomCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 1
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
--- !u!114 &943641692102070489
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1396569450907664}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 2bdce2c7382e03b449a06ca4941c71e3, type: 3}
m_Name:
m_EditorClassIdentifier:
activationDelay: 0.5
targetTag: Enemy
--- !u!114 &4799560431991595077
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1396569450907664}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 1219c341d913e3e4e912d424f804a6b7, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!1 &1506768218425990
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 4279439219186522}
- component: {fileID: 50107883579770240}
- component: {fileID: 114893472868460232}
- component: {fileID: 3788800559271028318}
m_Layer: 0
m_Name: Ship
m_TagString: Player
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &4279439219186522
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1506768218425990}
m_LocalRotation: {x: -0, y: -0, z: 0.04995713, w: -0.9987514}
m_LocalPosition: {x: -7.5736537, y: 11.339063, z: 10.838833}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:
- {fileID: 4419769467158982}
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: -5.727}
--- !u!50 &50107883579770240
Rigidbody2D:
serializedVersion: 4
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1506768218425990}
m_BodyType: 0
m_Simulated: 1
m_UseFullKinematicContacts: 0
m_UseAutoMass: 0
m_Mass: 2
m_LinearDrag: 1
m_AngularDrag: 1
m_GravityScale: 1
m_Material: {fileID: 6200000, guid: 704f912fbe8bba74ebedd5a5f7bff08f, type: 2}
m_Interpolate: 0
m_SleepingMode: 1
m_CollisionDetection: 0
m_Constraints: 0
--- !u!114 &114893472868460232
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1506768218425990}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 91d88e1722c056f47a710df9123b44a9, type: 3}
m_Name:
m_EditorClassIdentifier:
hull: {fileID: 1396569450907664}
horizontalShipSpeed: 5
verticalShipSpeed: 30
maxJetFuel: 0.8
jetFuelRechargeSpeed: 0.1
--- !u!82 &3788800559271028318
AudioSource:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1506768218425990}
m_Enabled: 1
serializedVersion: 4
OutputAudioMixerGroup: {fileID: 0}
m_audioClip: {fileID: 8300000, guid: 3862d528d79cd124880c6b991817a00e, type: 3}
m_PlayOnAwake: 0
m_Volume: 1
m_Pitch: 1
Loop: 0
Mute: 0
Spatialize: 0
SpatializePostEffects: 0
Priority: 128
DopplerLevel: 1
MinDistance: 1
MaxDistance: 500
Pan2D: 0
rolloffMode: 0
BypassEffects: 0
BypassListenerEffects: 0
BypassReverbZones: 0
rolloffCustomCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 1
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
- serializedVersion: 3
time: 1
value: 0
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
panLevelCustomCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 0
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
spreadCustomCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 0
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
reverbZoneMixCustomCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 1
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4

File diff suppressed because it is too large Load diff

View file

@ -314,6 +314,12 @@ Transform:
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 3 m_RootOrder: 3
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &1237532260 stripped
GameObject:
m_CorrespondingSourceObject: {fileID: 5804266078435074427, guid: bb65950cd5f10a448b1ecd42a3814aeb,
type: 3}
m_PrefabInstance: {fileID: 5804266076916140296}
m_PrefabAsset: {fileID: 0}
--- !u!224 &1686871873 stripped --- !u!224 &1686871873 stripped
RectTransform: RectTransform:
m_CorrespondingSourceObject: {fileID: 1475586331092748118, guid: 83b3c042c2cf3ce4fafc6b3346509ad9, m_CorrespondingSourceObject: {fileID: 1475586331092748118, guid: 83b3c042c2cf3ce4fafc6b3346509ad9,
@ -333,6 +339,10 @@ PrefabInstance:
m_Modification: m_Modification:
m_TransformParent: {fileID: 0} m_TransformParent: {fileID: 0}
m_Modifications: m_Modifications:
- target: {fileID: 1742300381, guid: e2bb5f24fc04fd94fa7d6f04c3713df6, type: 3}
propertyPath: target
value:
objectReference: {fileID: 1237532260}
- target: {fileID: 742014442006323160, guid: e2bb5f24fc04fd94fa7d6f04c3713df6, - target: {fileID: 742014442006323160, guid: e2bb5f24fc04fd94fa7d6f04c3713df6,
type: 3} type: 3}
propertyPath: m_LocalPosition.x propertyPath: m_LocalPosition.x

View file

@ -0,0 +1,37 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public enum FollowMouseOptions {
ALWAYS,
ONLY_WHEN_HOLDING_LMB
}
[RequireComponent(typeof(Rigidbody2D))]
public class FollowMouse : MonoBehaviour
{
public Vector2 min;
public Vector2 max;
public FollowMouseOptions options = FollowMouseOptions.ALWAYS;
private new Rigidbody2D rigidbody2D;
void Awake() {
rigidbody2D = GetComponent<Rigidbody2D>();
}
void Start() {
if(options == FollowMouseOptions.ALWAYS) {
Vector3 screenPoint = Camera.main.ScreenToWorldPoint(Input.mousePosition);
transform.position = new Vector3(Mathf.Clamp(screenPoint.x, min.x, max.x), Mathf.Clamp(screenPoint.y, min.y, max.y), transform.position.z);
}
}
void FixedUpdate()
{
if(options == FollowMouseOptions.ALWAYS) {
Vector3 screenPoint = Camera.main.ScreenToWorldPoint(Input.mousePosition);
transform.position = new Vector3(Mathf.Clamp(screenPoint.x, min.x, max.x), Mathf.Clamp(screenPoint.y, min.y, max.y), transform.position.z);
}
}
}

View file

@ -0,0 +1,31 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[RequireComponent(typeof(AudioSource))]
public class SoundOnCollisionEnterWithEnemy : MonoBehaviour
{
public float activationDelay = 0.5f;
public string targetTag = "Enemy";
private AudioSource audioSource;
private bool active;
void Awake()
{
audioSource = GetComponent<AudioSource>();
Invoke("Activate", activationDelay);
}
void Activate() {
active = true;
}
void OnTriggerEnter2D(Collider2D other) {
if(other.tag == targetTag && active) {
audioSource.Play();
}
}
}

View file

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: f61cbf65a6ff9414baa4d6c59782178c
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View file

@ -2,14 +2,18 @@
using System.Collections.Generic; using System.Collections.Generic;
using UnityEngine; using UnityEngine;
[RequireComponent(typeof(AudioSource))] [RequireComponent(typeof(AudioSource))]
public class SoundOnCollisionWithEnemy : MonoBehaviour public class SoundOnCollisionWithEnemy : MonoBehaviour
{ {
public float activationDelay = 0.5f; public float activationDelay = 0.5f;
public string targetTag = "Enemy";
private AudioSource audioSource; private AudioSource audioSource;
private bool active; private bool active;
void Awake() void Awake()
{ {
audioSource = GetComponent<AudioSource>(); audioSource = GetComponent<AudioSource>();
@ -21,7 +25,7 @@ public class SoundOnCollisionWithEnemy : MonoBehaviour
} }
void OnTriggerStay2D(Collider2D other) { void OnTriggerStay2D(Collider2D other) {
if(other.tag == "Enemy" && active) { if(other.tag == targetTag && active) {
audioSource.Play(); audioSource.Play();
active = false; active = false;
} }

View file

@ -1,27 +0,0 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[RequireComponent(typeof(Rigidbody2D))]
public class FollowMouse : MonoBehaviour
{
public Vector2 min;
public Vector2 max;
private new Rigidbody2D rigidbody2D;
void Awake() {
rigidbody2D = GetComponent<Rigidbody2D>();
}
void Start() {
Vector3 screenPoint = Camera.main.ScreenToWorldPoint(Input.mousePosition);
transform.position = new Vector3(Mathf.Clamp(screenPoint.x, min.x, max.x), Mathf.Clamp(screenPoint.y, min.y, max.y), transform.position.z);
}
void FixedUpdate()
{
Vector3 screenPoint = Camera.main.ScreenToWorldPoint(Input.mousePosition);
rigidbody2D.MovePosition(new Vector3(Mathf.Clamp(screenPoint.x, min.x, max.x), Mathf.Clamp(screenPoint.y, min.y, max.y), transform.position.z));
}
}

View file

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: d32d78df161e754499c868a56c75e21f
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View file

@ -0,0 +1,20 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[RequireComponent(typeof(AudioSource))]
public class EatIfOver : MonoBehaviour
{
private AudioSource audioSource;
void Awake() {
audioSource = GetComponent<AudioSource>();
}
void OnTriggerStay2D(Collider2D other) {
if(other.tag == "Enemy" && !Input.GetMouseButton(0)) {
audioSource.Play();
Destroy(other.gameObject);
}
}
}

View file

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: c3817aab5e68ab643932247cddde9cc9
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

BIN
Assets/Scripts/Microgame_It/background_creepy.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Assets/Scripts/Microgame_It/background_vikreepy.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Assets/Scripts/Microgame_It/it_hungry.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Assets/Scripts/Microgame_It/kid.png (Stored with Git LFS) Normal file

Binary file not shown.

View file

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: af8e88ce9eaceb949a6f5735b8178565
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

BIN
Assets/Sound/Microgame_YourShip/splash.mp3 (Stored with Git LFS) Normal file

Binary file not shown.

View file

@ -0,0 +1,22 @@
fileFormatVersion: 2
guid: 400ace27afa668f49a3fba37deae08d1
AudioImporter:
externalObjects: {}
serializedVersion: 6
defaultSettings:
loadType: 0
sampleRateSetting: 0
sampleRateOverride: 44100
compressionFormat: 1
quality: 1
conversionMode: 0
platformSettingOverrides: {}
forceToMono: 0
normalize: 1
preloadAudioData: 1
loadInBackground: 0
ambisonic: 0
3D: 1
userData:
assetBundleName:
assetBundleVariant:

BIN
Assets/Sound/Microgame_YourShip/splash.wav (Stored with Git LFS)

Binary file not shown.

BIN
Assets/Sprites/Microgame_It/background_creepy.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Assets/Sprites/Microgame_It/background_vikreepy.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Assets/Sprites/Microgame_It/it_crunchy.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Assets/Sprites/Microgame_It/it_hungry.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Assets/Sprites/Microgame_It/it_sexy.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Assets/Sprites/Microgame_It/kid.png (Stored with Git LFS) Normal file

Binary file not shown.

View file

@ -6,6 +6,7 @@ TagManager:
tags: tags:
- Enemy - Enemy
- MicrogameController - MicrogameController
- Sea
layers: layers:
- Default - Default
- TransparentFX - TransparentFX