m2-retro-mmo / bubble-bobble

5 stars 0 forks source link

Bug: no BoxCollider2D attached to Character #114

Closed JonasFisch closed 1 year ago

JonasFisch commented 1 year ago

Ich glaube da ist was beim einstellen der Character Collider schiefgegangen

MissingComponentException: There is no 'BoxCollider2D' attached to the "Character(Clone)" game object, but a script is trying to access it. You probably need to add a BoxCollider2D to the game object "Character(Clone)". Or your script needs to check if the component is attached before using it. UnityEngine.Collider2D.get_offset () (at <5b2a4b443d69492bb838139a3db3c697>:0) Player.getCenterOfPlayer () (at Assets/Scripts/Player.cs:63) Player.LookAtMouse () (at Assets/Scripts/Player.cs:42) Player.LateUpdate () (at Assets/Scripts/Player.cs:99)