onDraw(tag: Tag, action: (obj: GameObj)=>void): KEventController
Register an event that runs every frame (~60 times per second) for all game objs with certain tag (this is the same as onUpdate but all draw events are run after update events, drawXXX() functions only work in this phase).
param
tag- The tag to listen for.
param
action- The function to run when the event is triggered.
returns
The event controller.
since
v2000.1