From fa2af2f6ef6c7f6353780c983b1f2d7981e09275 Mon Sep 17 00:00:00 2001 From: KG0104 <76601263+KG0104@users.noreply.github.com> Date: Wed, 28 Jul 2021 11:26:05 +0200 Subject: [PATCH] Maus kann nicht mehr am Pilz haengen bleiben --- .../Scenes/Green_Idyll/green_idyll_1.unity | 129 ++---------------- 2DGame/Assets/Scripts/Maus/MouseController.cs | 2 +- 2 files changed, 14 insertions(+), 117 deletions(-) diff --git a/2DGame/Assets/Scenes/Green_Idyll/green_idyll_1.unity b/2DGame/Assets/Scenes/Green_Idyll/green_idyll_1.unity index 44b7816..1f1a4e3 100644 --- a/2DGame/Assets/Scenes/Green_Idyll/green_idyll_1.unity +++ b/2DGame/Assets/Scenes/Green_Idyll/green_idyll_1.unity @@ -631,6 +631,7 @@ MonoBehaviour: player: {fileID: 936765971} agroRange: 20 MoveSpeed: 5 + distToPlayer: 0 --- !u!60 &108787736 PolygonCollider2D: m_ObjectHideFlags: 0 @@ -993,6 +994,7 @@ MonoBehaviour: player: {fileID: 936765971} agroRange: 20 MoveSpeed: 5 + distToPlayer: 0 --- !u!60 &115413378 PolygonCollider2D: m_ObjectHideFlags: 0 @@ -2920,6 +2922,7 @@ MonoBehaviour: player: {fileID: 936765971} agroRange: 50 MoveSpeed: 5 + distToPlayer: 0 --- !u!114 &243225410 MonoBehaviour: m_ObjectHideFlags: 0 @@ -3891,8 +3894,8 @@ GameObject: m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 ---- !u!60 &429880754 -PolygonCollider2D: +--- !u!61 &429880754 +BoxCollider2D: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} @@ -3904,7 +3907,7 @@ PolygonCollider2D: m_IsTrigger: 0 m_UsedByEffector: 0 m_UsedByComposite: 0 - m_Offset: {x: 0, y: 0} + m_Offset: {x: 0.20655823, y: -0.018776894} m_SpriteTilingProperty: border: {x: 0, y: 0, z: 0, w: 0} pivot: {x: 0.5, y: 0.5} @@ -3914,119 +3917,9 @@ PolygonCollider2D: drawMode: 0 adaptiveTiling: 0 m_AutoTiling: 0 - m_Points: - m_Paths: - - - {x: 2.27, y: -2.99} - - {x: 2.21, y: -2.77} - - {x: 2.1599998, y: -2.58} - - {x: 2.1, y: -2.36} - - {x: 2.05, y: -2.1699998} - - {x: 2.01, y: -2.02} - - {x: 1.99, y: -1.9499999} - - {x: 1.9399999, y: -1.76} - - {x: 1.9299622, y: -1.7224178} - - {x: 1.9283447, y: -1.7163067} - - {x: 1.86, y: -1.4599999} - - {x: 1.8299999, y: -1.35} - - {x: 1.75, y: -1.05} - - {x: 1.7199999, y: -0.94} - - {x: 1.64, y: -0.64} - - {x: 1.61, y: -0.53} - - {x: 1.53, y: -0.22999999} - - {x: 1.5, y: -0.12} - - {x: 1.4599999, y: 0.03} - - {x: 1.4399999, y: 0.099999994} - - {x: 1.42, y: 0.17999999} - - {x: 1.37, y: 0.35999998} - - {x: 3.04, y: 0.35999998} - - {x: 3.1399999, y: 0.37} - - {x: 3.1899998, y: 0.38} - - {x: 3.25, y: 0.39999998} - - {x: 3.3, y: 0.42999998} - - {x: 3.3799999, y: 0.5} - - {x: 3.4099998, y: 0.57} - - {x: 3.4199998, y: 0.62} - - {x: 3.4199998, y: 0.71999997} - - {x: 3.4099998, y: 0.77} - - {x: 3.3899999, y: 0.84999996} - - {x: 3.36, y: 0.93} - - {x: 3.28, y: 1.1} - - {x: 3.22, y: 1.1999999} - - {x: 3.1399999, y: 1.3199999} - - {x: 3.08, y: 1.4} - - {x: 3.02, y: 1.4699999} - - {x: 2.9299998, y: 1.5799999} - - {x: 2.87, y: 1.65} - - {x: 2.78, y: 1.75} - - {x: 2.3799999, y: 2.1499999} - - {x: 2.27, y: 2.25} - - {x: 2.12, y: 2.3799999} - - {x: 2, y: 2.48} - - {x: 1.87, y: 2.59} - - {x: 1.78, y: 2.6599998} - - {x: 1.67, y: 2.74} - - {x: 1.5699999, y: 2.81} - - {x: 1.51, y: 2.85} - - {x: 1.3199999, y: 2.97} - - {x: 1.28, y: 3} - - {x: 1.13, y: 3.09} - - {x: 1.04, y: 3.1399999} - - {x: 0.78999996, y: 3.26} - - {x: 0.7, y: 3.3} - - {x: 0.59999996, y: 3.34} - - {x: 0.45999998, y: 3.3899999} - - {x: 0.35, y: 3.4199998} - - {x: 0.26999998, y: 3.4399998} - - {x: 0.16, y: 3.46} - - {x: 0.04, y: 3.47} - - {x: -0.049999997, y: 3.47} - - {x: -0.16, y: 3.46} - - {x: -0.22999999, y: 3.4499998} - - {x: -0.32, y: 3.4299998} - - {x: -0.39999998, y: 3.4099998} - - {x: -0.45999998, y: 3.3899999} - - {x: -0.53, y: 3.37} - - {x: -0.62, y: 3.34} - - {x: -0.71, y: 3.3} - - {x: -1.09, y: 3.12} - - {x: -1.18, y: 3.07} - - {x: -1.3299999, y: 2.98} - - {x: -1.4399999, y: 2.9099998} - - {x: -1.5899999, y: 2.81} - - {x: -1.6899999, y: 2.74} - - {x: -1.8399999, y: 2.6299999} - - {x: -1.9699999, y: 2.52} - - {x: -2.07, y: 2.44} - - {x: -2.19, y: 2.34} - - {x: -2.26, y: 2.28} - - {x: -2.35, y: 2.2} - - {x: -2.48, y: 2.08} - - {x: -2.8, y: 1.76} - - {x: -2.8999999, y: 1.65} - - {x: -3.02, y: 1.51} - - {x: -3.1299999, y: 1.37} - - {x: -3.21, y: 1.27} - - {x: -3.25, y: 1.2099999} - - {x: -3.31, y: 1.11} - - {x: -3.35, y: 1.05} - - {x: -3.4199998, y: 0.9} - - {x: -3.46, y: 0.78999996} - - {x: -3.47, y: 0.75} - - {x: -3.48, y: 0.69} - - {x: -3.48, y: 0.58} - - {x: -3.47, y: 0.53999996} - - {x: -3.4499998, y: 0.48999998} - - {x: -3.37, y: 0.39999998} - - {x: -3.3, y: 0.37} - - {x: -3.24, y: 0.35} - - {x: -3.1799998, y: 0.34} - - {x: -1.55, y: 0.34} - - {x: -2.18, y: -3.4299998} - - {x: -2.19, y: -3.5} - - {x: 2.3999999, y: -3.5} - - {x: 2.3899999, y: -3.4399998} - - {x: 2.3799999, y: -3.3999999} - - {x: 2.32, y: -3.1799998} + serializedVersion: 2 + m_Size: {x: 5.1598816, y: 7.037554} + m_EdgeRadius: 0 --- !u!114 &429880755 MonoBehaviour: m_ObjectHideFlags: 0 @@ -14548,6 +14441,7 @@ MonoBehaviour: player: {fileID: 936765971} agroRange: 20 MoveSpeed: 5 + distToPlayer: 0 --- !u!95 &1089946333 Animator: serializedVersion: 3 @@ -27038,6 +26932,7 @@ MonoBehaviour: player: {fileID: 936765971} agroRange: 20 MoveSpeed: 5 + distToPlayer: 0 --- !u!60 &1567296179 PolygonCollider2D: m_ObjectHideFlags: 0 @@ -27598,6 +27493,7 @@ MonoBehaviour: player: {fileID: 936765971} agroRange: 20 MoveSpeed: 5 + distToPlayer: 0 --- !u!60 &1606906734 PolygonCollider2D: m_ObjectHideFlags: 0 @@ -30865,6 +30761,7 @@ MonoBehaviour: player: {fileID: 936765971} agroRange: 20 MoveSpeed: 5 + distToPlayer: 0 --- !u!60 &2108040097 PolygonCollider2D: m_ObjectHideFlags: 0 diff --git a/2DGame/Assets/Scripts/Maus/MouseController.cs b/2DGame/Assets/Scripts/Maus/MouseController.cs index 52d139d..b469db4 100644 --- a/2DGame/Assets/Scripts/Maus/MouseController.cs +++ b/2DGame/Assets/Scripts/Maus/MouseController.cs @@ -42,7 +42,7 @@ public class MouseController : MonoBehaviour checkpoint = GetComponent(); - transform.position = checkpoint.CheckPoints[5].transform.position; + transform.position = checkpoint.CheckPoints[3].transform.position; } // Update is called once per frame -- 2.44.0