What's the problem?? BCE0077: It is not possible to invoke an expression of type 'boolean'.

function Start () {
Inventory = false;
}

 function Update () {
     if(Input.GetKeyDown(KeyCode.E)) {
     Canvas.enabled( !Canvas.enabled);
     }
 }

What is the problem with this code???
The problem is the " Canvas.enabled( !Canvas.enabled);"…

You’re calling Canvas.enabled as if it was a method. But it’s just a bool

This is what you wanted:

Canvas.enabled = !Canvas.enabled;

THANK YOOUUUUU <3 <3 <3