Function
onTag
(action: (obj: GameObj, tag: string) => void): KEventControllerRegister an event that runs when an object gains a tag.
param action- The function that runs when an object gains a tag.
param unknown- The tag which was added.
returns The event controller.
since v3001.10
group Events