Added more details in Timer.start() error message.
This commit is contained in:
parent
a87e2f85ee
commit
f085110b20
1 changed files with 1 additions and 1 deletions
|
@ -108,7 +108,7 @@ bool Timer::has_autostart() const {
|
|||
|
||||
void Timer::start(float p_time) {
|
||||
|
||||
ERR_FAIL_COND_MSG(!is_inside_tree(), "Timer was not added to the SceneTree!");
|
||||
ERR_FAIL_COND_MSG(!is_inside_tree(), "Timer was not added to the SceneTree. Either add it or set autostart to true.");
|
||||
|
||||
if (p_time > 0) {
|
||||
set_wait_time(p_time);
|
||||
|
|
Loading…
Reference in a new issue