setHealth
Sets the health property of the Game Object to the given amount.
Will never exceed the maxHealth
value.
- Source code: gameobjects/components/Health.js (Line 70)
setHealth
Sets the health property of the Game Object to the given amount.
Will never exceed the maxHealth
value.
Designed by : w10schools
service@w10schools.com
Please login to continue.