]> git.lizzy.rs Git - SuperMouseAdventure.git/blobdiff - 2DGame/Assets/Scripts/Audio/LandingSound.cs
improved movement v0.1
[SuperMouseAdventure.git] / 2DGame / Assets / Scripts / Audio / LandingSound.cs
index 866abf7f9136913a6ea69d069738a6ad8915e8c6..db696532e4becb2764f5a788da52be269843e263 100644 (file)
@@ -4,19 +4,11 @@ using UnityEngine;
 
 public class LandingSound : MonoBehaviour
 {
-    [SerializeField]
-    GameObject groundCheck;
-
-    [SerializeField]
-    GameObject dustEffect;
-
     private void OnCollisionEnter2D(Collision2D collision)
     {
         if(collision.gameObject.CompareTag("Player"))
         {
             FindObjectOfType<AudioManager>().Play("landung");
-            Vector3 spawnPos = new Vector3(groundCheck.transform.position.x, groundCheck.transform.position.y + 1, groundCheck.transform.position.z);
-            Instantiate(dustEffect, spawnPos, Quaternion.identity);
         }
     }
-}
+}
\ No newline at end of file