I think the problem is with your Mob scene. Its root node should be of type Rigidbody2D
but, according to the error, it's a Node2D
.
If that's the case, you can right-click the root node in the Mob scene and use Change Type
to set it to Rigidbody2D
. Also, if the node type was wrong, you'll likely need to change the top line of the Mob script from:
extends Node2D
to...
extends RigidBody2D