feat: rng is now initialzed on _enter_tree

main
Sara 2024-10-05 22:16:51 +02:00
parent 79c37a3ccc
commit 76fa8d3e3f
2 changed files with 4 additions and 3 deletions

View File

@ -40,6 +40,7 @@ void GameRoot3D::_enter_tree() { GDGAMEONLY();
// TODO: Replace this with detecting input devices // TODO: Replace this with detecting input devices
this->player_input_connected(); this->player_input_connected();
this->grab_singleton(); this->grab_singleton();
this->rng = godot::Ref<godot::RandomNumberGenerator>(memnew(godot::RandomNumberGenerator));
} }
void GameRoot3D::_ready() { GDGAMEONLY(); void GameRoot3D::_ready() { GDGAMEONLY();