Howdy, Stranger!

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

Collision script shown in the brackeys youtube channel is not working

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

  • MrBaileyQMrBaileyQ Member
    Accepted Answer

    Hmm...


    Please Make Sure Your Script Has This:

    // The Variable We Will Use For Referencing Our Player Movement

    public Whatever You Called Your Player Movement Goes Here movement;


    Now, When You Are Trying To Enable And Disable Player Movement Use This Line Of Code:


    //Disables Our Player Movement

    movement.enabled = false;


    Hope This Helped. Stay Safe :)

Sign In or Register to comment.