]> git.lizzy.rs Git - SuperMouseAdventure.git/blobdiff - 2DGame/Assets/Scripts/Enemies/Boss/Boss.cs
Snail can no longer be attacked before the actual fight starts
[SuperMouseAdventure.git] / 2DGame / Assets / Scripts / Enemies / Boss / Boss.cs
index 68975e2a7415f44b5d06d8b52e6a0f485250c18a..d31b28a14d4ca617d75d075d25f1366b8ef07fd9 100644 (file)
@@ -22,6 +22,11 @@ public class Boss : MonoBehaviour
     public Sprite fullHeart;
     public Sprite emptyHeart;
 
+    private void Start()
+    {
+        GetComponent<Rigidbody2D>().constraints = RigidbodyConstraints2D.FreezeAll;
+    }
+
     // Update is called once per frame
     void Update()
     {