feat: registering get_unit with class db
This commit is contained in:
parent
3c59403a07
commit
0ff5f4ae9c
|
@ -4,6 +4,7 @@
|
||||||
|
|
||||||
void EnemyBody::_bind_methods() {
|
void EnemyBody::_bind_methods() {
|
||||||
ClassDB::bind_method(D_METHOD("set_movement_direction", "direction"), &self_type::set_movement_direction);
|
ClassDB::bind_method(D_METHOD("set_movement_direction", "direction"), &self_type::set_movement_direction);
|
||||||
|
ClassDB::bind_method(D_METHOD("get_unit"), &self_type::get_unit);
|
||||||
}
|
}
|
||||||
|
|
||||||
void EnemyBody::on_child_added(Node *node) {
|
void EnemyBody::on_child_added(Node *node) {
|
||||||
|
|
Loading…
Reference in a new issue