fix: ExitDoor::enter_tree GDGAMEONLY
This commit is contained in:
parent
d98c832719
commit
f50357337f
|
@ -1,13 +1,14 @@
|
||||||
#include "exit_door.hpp"
|
#include "exit_door.hpp"
|
||||||
#include "rally_rush_game_mode.hpp"
|
#include "rally_rush_game_mode.hpp"
|
||||||
#include "utils/game_root.hpp"
|
#include "utils/game_root.hpp"
|
||||||
|
#include "utils/godot_macros.h"
|
||||||
|
|
||||||
namespace godot {
|
namespace godot {
|
||||||
void ExitDoor::_bind_methods() {
|
void ExitDoor::_bind_methods() {
|
||||||
#define CLASSNAME ExitDoor
|
#define CLASSNAME ExitDoor
|
||||||
}
|
}
|
||||||
|
|
||||||
void ExitDoor::_enter_tree() {
|
void ExitDoor::_enter_tree() { GDGAMEONLY();
|
||||||
this->player = this->get_node<AnimationPlayer>("AnimationPlayer");
|
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));
|
Ref<RallyRushGameMode>(GameRoot3D::get_singleton()->get_game_mode())->connect("all_keys_found", callable_mp(this, &ExitDoor::all_keys_found));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue