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