How to add in multiple Health Int Components? #1038
Answered
by
chengenzhao
chengenzhao
asked this question in
Q&A
-
|
Hi: Is there any way to add multiple health int or double components using with method? entity
.with(new HealthIntComponent(), "HP")
.with(new HealthIntComponent(), "MP");Thanks |
Beta Was this translation helpful? Give feedback.
Answered by
chengenzhao
May 2, 2021
Replies: 1 comment 1 reply
-
|
hmmm... |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
chengenzhao
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
hmmm...
I think I found the answer
just write a class to extend RechargeableDoubleComponent or RechargeableIntComponent then it will work