feat: rng is now initialzed on _enter_tree
parent
79c37a3ccc
commit
76fa8d3e3f
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue