diff --git a/src/my_node.cpp b/src/my_node.cpp index ce88dd7..58a9656 100644 --- a/src/my_node.cpp +++ b/src/my_node.cpp @@ -7,7 +7,7 @@ using namespace godot; void MyNode::_bind_methods() { - ClassDB::bind_method(D_METHOD("hello_node"), &MyNode::hello_node); + ClassDB::bind_method("hello_node", &MyNode::hello_node); } MyNode::MyNode() diff --git a/src/my_singleton.cpp b/src/my_singleton.cpp index 1760461..b64a7ab 100644 --- a/src/my_singleton.cpp +++ b/src/my_singleton.cpp @@ -9,7 +9,7 @@ MySingleton *MySingleton::singleton = nullptr; void MySingleton::_bind_methods() { - ClassDB::bind_method(D_METHOD("hello_singleton"), &MySingleton::hello_singleton); + ClassDB::bind_method("hello_singleton", &MySingleton::hello_singleton); } MySingleton *MySingleton::get_singleton()