Getting error "There is no collider attached to enemy" (but there is)

Hello :slight_smile:
Unity handles 2D colliders and 3d colliders as diferent components, use the same collider type from the inspector in the GetComponent. Since the laser has a 2d collider, you should use it this way:

mincol.GetComponent<Collider2D>()

By the way, sorry for the delay to answer, Im working hard on my current game :slight_smile: let me know if this solves your problem

2 Likes