fix: ExitDoor::enter_tree GDGAMEONLY

This commit is contained in:
Sara 2024-05-22 09:32:48 +02:00
parent d98c832719
commit f50357337f

View file

@ -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>("AnimationPlayer");
Ref<RallyRushGameMode>(GameRoot3D::get_singleton()->get_game_mode())->connect("all_keys_found", callable_mp(this, &ExitDoor::all_keys_found));
}