하트 시스템, 2d 버튼 에셋 추가
This commit is contained in:
8
Gameton-06/Assets/HealthHeartSystem/readme.txt
Normal file
8
Gameton-06/Assets/HealthHeartSystem/readme.txt
Normal file
@@ -0,0 +1,8 @@
|
||||
How it works?
|
||||
All heart containers are instantiated at start, and unused heart containers are disabled until being used.
|
||||
The property fillAMount of UI Images are used to fill the hearts. 1 heart equals to 1 health.
|
||||
|
||||
Why using floats?
|
||||
Well, this assets was originally part of a game of mine, where the player would have a health between 3 and 20. Monsters
|
||||
would deal about 1 damage, and later in the game the player could get armors (reducing damage by 25% or 50%, multiplying
|
||||
the damage by 0.75f or 0.5f, respectively).
|
||||
Reference in New Issue
Block a user