Function
onUse
(action: (obj: GameObj, id: string) => void): KEventControllerRegister an event that runs when an object starts using a component.
param action- The function that runs when the event happens.
returns The event controller.
since v3001.1
group Events