Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Help me with playercollision script I am stuck with this error.

Assets\playercollision.cs(14,22): error CS1061: 'PlayerMovement' does not contain a definition for 'Enabled' and no accessible extension method 'Enabled' accepting a first argument of type 'PlayerMovement' could be found (are you missing a using directive or an assembly reference?)

Best Answer

  • MouledouxMouledoux Member
    Accepted Answer

    Can you post your code please?

    I think your problem is 'Enabled' is not a property of a mono class

    Try 'enabled', or if you want to change the GameObject and not just the component, use 'SetActive()'.


Sign In or Register to comment.