onAdd(tag: Tag , action: (obj: GameObj )=>void ): KEventController
Register an event that runs when a game obj with certain tag is created.
paramtag- The tag to listen for.
paramaction- The function to run when the event is triggered.
returnsThe event controller.
sincev2000.0
groupEvents
onAdd(action: (obj: GameObj )=>void ): KEventController
Register an event that runs when a game obj is created.
paramaction- The function to run when the event is triggered.
returnsThe event controller.
sincev2000.0
groupEvents