Add other compnent feature to existed GameObj #510
-
I'm newer to kaplay and ts. I try to use function like this below: Expect the 'text' GameObj's type change into So if I invoke the 'onCollide' function in AreaComp, the ts check will raise the error: Waiting for your suggestions. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Sure, will add something like text = text.use(k.area()) return the correct type |
Beta Was this translation helpful? Give feedback.
-
Thank you, sir |
Beta Was this translation helpful? Give feedback.
Sure, will add something like
text = text.use(k.area()) return the correct type