func _process(_delta):
yield(get_tree().create_timer(time),"timeout")
_do_stuff()
Works perfectly well until I try to change or reload current scene. Then it returns this error: "Resumed function _process()
after yield, but class instance is gone".
Is there any simple workaround?
I honestly like the simplicity of yield(get_tree().create_timer(time),"timeout")
Is there a method maybe to control it?
Thank you for your time!