mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Improve Timer::start error message.
This commit is contained in:
parent
19bb18716e
commit
90328e921f
1 changed files with 1 additions and 1 deletions
|
|
@ -114,7 +114,7 @@ bool Timer::has_autostart() const {
|
|||
}
|
||||
|
||||
void Timer::start(double p_time) {
|
||||
ERR_FAIL_COND_MSG(!is_inside_tree(), "Timer was not added to the SceneTree. Either add it or set autostart to true.");
|
||||
ERR_FAIL_COND_MSG(!is_inside_tree(), "Unable to start the timer because it's not inside the scene tree. Either add it or set autostart to true.");
|
||||
|
||||
if (p_time > 0) {
|
||||
set_wait_time(p_time);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue