I have a child node “Node2D” in my “GameObject”,
I want to add a GDScript to “Node2D”,
When the variable “hp” equals “max_hp” of the “GameObject”,
the visibility of “Node2D” = False;
When the variable “hp” of the “GameObject” is less than “max_hp”,
the visibility of “Node2D” = True;
How should I write the code?