onUse(action: (obj: GameObj, id: string)=>void): KEventController
Register an event that runs when an object starts using a component.
param
action- The function that runs when an object starts using component.
param
unknown- The id of the component that was added.
returns
The event controller.
since
v3001.1