From 031278407df73f127603d3602e0c79b20d91ecc0 Mon Sep 17 00:00:00 2001 From: Tucan444 Date: Tue, 20 Jul 2021 21:40:21 +0200 Subject: [PATCH] _ --- Assets/Scenes/Level1.unity | 12 ++++++------ Assets/Scripts/Death.cs | 5 ++++- UserSettings/EditorUserSettings.asset | 3 +++ 3 files changed, 13 insertions(+), 7 deletions(-) diff --git a/Assets/Scenes/Level1.unity b/Assets/Scenes/Level1.unity index 4a0a693..737404a 100644 --- a/Assets/Scenes/Level1.unity +++ b/Assets/Scenes/Level1.unity @@ -5656,12 +5656,12 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: 073797afb82c5a1438f328866b10b3f0, type: 3} m_Name: m_EditorClassIdentifier: - m_LightType: 4 + m_LightType: 3 m_BlendStyleIndex: 0 - m_FalloffIntensity: 0.5 + m_FalloffIntensity: 0.342 m_Color: {r: 1, g: 1, b: 1, a: 1} m_Intensity: 1 - m_LightVolumeOpacity: 0 + m_LightVolumeOpacity: 0.023 m_ApplyToSortingLayers: 00000000 m_LightCookieSprite: {fileID: 0} m_UseNormalMap: 0 @@ -5671,13 +5671,13 @@ MonoBehaviour: m_ShadowVolumeIntensity: 0 m_PointLightInnerAngle: 360 m_PointLightOuterAngle: 360 - m_PointLightInnerRadius: 0 - m_PointLightOuterRadius: 1 + m_PointLightInnerRadius: 2.13 + m_PointLightOuterRadius: 42.7 m_PointLightDistance: 3 m_PointLightQuality: 1 m_ShapeLightParametricSides: 5 m_ShapeLightParametricAngleOffset: 0 - m_ShapeLightParametricRadius: 1 + m_ShapeLightParametricRadius: 20 m_ShapeLightFalloffSize: 0.5 m_ShapeLightFalloffOffset: {x: 0, y: 0} m_ShapePath: diff --git a/Assets/Scripts/Death.cs b/Assets/Scripts/Death.cs index 8f2ffee..9528aa1 100644 --- a/Assets/Scripts/Death.cs +++ b/Assets/Scripts/Death.cs @@ -10,6 +10,9 @@ public class Death : MonoBehaviour } private void OnCollisionEnter2D (Collision2D collisionInfo) { - collisionInfo.collider.transform.position = Vector3.zero; + if (collisionInfo.collider.name == "Player") { + collisionInfo.collider.transform.position = Vector3.zero; + collisionInfo.collider.GetComponent().velocity = Vector3.zero; + } } } diff --git a/UserSettings/EditorUserSettings.asset b/UserSettings/EditorUserSettings.asset index 048ad62..ec9efe3 100644 --- a/UserSettings/EditorUserSettings.asset +++ b/UserSettings/EditorUserSettings.asset @@ -8,6 +8,9 @@ EditorUserSettings: RecentlyUsedScenePath-0: value: 22424703114646680e0b0227036c6c111b07142f1f2b233e2867083debf42d flags: 0 + RecentlyUsedScenePath-1: + value: 22424703114646680e0b0227036c73150012147b623d28393930 + flags: 0 UnityRemoteCompression: value: 337f73 flags: 0