Add other compnent feature to existed GameObj #510
Answered
by
lajbel
white16819
asked this question in
Q&A
|
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. |
Answered by
lajbel
Nov 14, 2024
Replies: 2 comments
|
Sure, will add something like text = text.use(k.area()) return the correct type |
0 replies
Answer selected by
white16819
|
Thank you, sir |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sure, will add something like
text = text.use(k.area()) return the correct type