]> git.lizzy.rs Git - SuperMouseAdventure.git/commitdiff
Anpassung der Gravitation
authorKG0104 <76601263+KG0104@users.noreply.github.com>
Mon, 24 May 2021 15:46:15 +0000 (17:46 +0200)
committerKG0104 <76601263+KG0104@users.noreply.github.com>
Mon, 24 May 2021 15:46:15 +0000 (17:46 +0200)
Der Sprung fühlt sich jetzt mehr wie ein Sprung als wie ein Schweben an.

2DGame/Assets/Animations/Mouse/maus.controller
2DGame/Assets/Scripts/LandingSound.cs
2DGame/Assets/Scripts/Maus/MouseController.cs

index ac59b6b3fcb3f7a81442250d50208ee75f700db4..450cbcd85f8271fe3413003982311752e77e0246 100644 (file)
@@ -20,7 +20,7 @@ AnimatorStateTransition:
   m_TransitionDuration: 0
   m_TransitionOffset: 0
   m_ExitTime: 0.82142854
-  m_HasExitTime: 1
+  m_HasExitTime: 0
   m_HasFixedDuration: 1
   m_InterruptionSource: 0
   m_OrderedInterruption: 1
@@ -106,7 +106,7 @@ AnimatorController:
     m_DefaultFloat: 0
     m_DefaultInt: 0
     m_DefaultBool: 0
-    m_Controller: {fileID: 0}
+    m_Controller: {fileID: 9100000}
   m_AnimatorLayers:
   - serializedVersion: 5
     m_Name: Base Layer
index 2825bc429dd59e4fc9db4e4f66e339ef7e7db959..2e25b64f39a47dc64c2cb2ede3b4356b7a795020 100644 (file)
@@ -10,7 +10,7 @@ public class LandingSound : MonoBehaviour
     [SerializeField]
     GameObject dustEffect;
 
-    private void OnTriggerEnter2D(Collider2D collision)
+    private void OnCollisionEnter2D(Collider2D collision)
     {
         if(collision.CompareTag("Player"))
         {
index 19ffe2db280d0ab6563f68dfac337bc8ec4dba92..57faed0596517c661360f5fdc632044ae3c173cc 100644 (file)
@@ -90,6 +90,8 @@ public class MouseController : MonoBehaviour
                 Invoke("ResetShoot", shootDelay);
             }
         }
+
+        print(moveInput);
     }
 
     void FixedUpdate() 
@@ -100,7 +102,8 @@ public class MouseController : MonoBehaviour
         //Wenn a und d oder Pfeiltaste links und rechts gedrückt werden, ist der Wert von moveInput -1 oder 1;
         moveInput = Input.GetAxisRaw("Horizontal");
         rb.velocity = new Vector2(moveInput * speed, rb.velocity.y);
-    }
+
+    } 
 
     void ResetShoot()
     {