getting InvalidCastExeption following Dodge the creeps tutorial

tryingmybesttryingmybest Posts: 3Member
in 2D

hi there
the line "RigidBody2D mobInstance = (RigidBody2D)mob.Instance(); " causes the exeption and I don`t know why

project link: https://drive.google.com/drive/folders/1o0MHTOqbiwlaAugUj9ioB4jKR5BchsMB?usp=sharing

Comments

  • TwistedTwiglegTwistedTwigleg Posts: 2,666Admin

    This discussion was caught in the moderation queue since you have not confirmed your account yet.

    Upon creating your account you should have received an account verification email. The confirmation email may have been incorrectly flagged as spam, so please also check your spam filter. Without confirming your account, future posts may also be caught in the moderation queue. You can resend a confirmation email when you log into your account if you cannot find the first verification email.

    If you need any help, please let us know! You can find ways to contact forum staff on the Contact page. Thanks! :smile:

Leave a Comment

BoldItalicStrikethroughOrdered listUnordered list
Emoji
Image
Align leftAlign centerAlign rightToggle HTML viewToggle full pageToggle lights
Drop image/file