하트 시스템, 2d 버튼 에셋 추가

This commit is contained in:
aube.lee
2025-02-04 12:42:38 +09:00
parent 00df2a1d90
commit b8ed6ebc26
113 changed files with 19660 additions and 0 deletions

View 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).