diff --git a/src/exit_door.cpp b/src/exit_door.cpp index 7f4cfeb..9369d69 100644 --- a/src/exit_door.cpp +++ b/src/exit_door.cpp @@ -1,13 +1,14 @@ #include "exit_door.hpp" #include "rally_rush_game_mode.hpp" #include "utils/game_root.hpp" +#include "utils/godot_macros.h" namespace godot { void ExitDoor::_bind_methods() { #define CLASSNAME ExitDoor } -void ExitDoor::_enter_tree() { +void ExitDoor::_enter_tree() { GDGAMEONLY(); this->player = this->get_node("AnimationPlayer"); Ref(GameRoot3D::get_singleton()->get_game_mode())->connect("all_keys_found", callable_mp(this, &ExitDoor::all_keys_found)); }