]> git.lizzy.rs Git - SuperMouseAdventure.git/blobdiff - 2DGame/Assets/Scripts/Dialogue/BossDialogue.cs
Snail can no longer be attacked before the actual fight starts
[SuperMouseAdventure.git] / 2DGame / Assets / Scripts / Dialogue / BossDialogue.cs
index 7968672e3e4dd2a836795661e03c6a6b2fe1f2af..b4042e666f6c69cf49afc4c80a6dfcab96832730 100644 (file)
@@ -73,6 +73,7 @@ public class BossDialogue : MonoBehaviour
             dialogueBox.SetActive(false);
             SpeechBubble.SetActive(false);
             boss.bossfight = true;
+            bossObject.GetComponent<Rigidbody2D>().constraints = RigidbodyConstraints2D.FreezeRotation;
             mouse.GetComponent<Rigidbody2D>().constraints = RigidbodyConstraints2D.FreezeRotation;
             mouse.GetComponent<MouseController>().enabled = true;
             FindObjectOfType<AudioManager>().Play("snail_fight");