Lesson 5 - No need to import Task
Closed this issue · 3 comments
Moguri commented
cont
(and related members) are available on all Task
instances, including the one passed in to update()
. In other words, task.cont
can be used instead of Task.cont
, which avoids the need to import Task
from direct.task
.
ArsThaumaturgis commented
Ah, I see--thank you for that; I wasn't aware that the return values were so available!
I'll fix that then, I intend.
ArsThaumaturgis commented
Done, I believe, with the following commit:
ce92963
Do you see any issues with the changes made there?
Moguri commented
The changes look good to me, thanks!