Closed Jason450 closed 6 years ago
Coin script interaction with player's life implemented in this commit https://github.com/Kenjor97/KriticGamesProject/commit/442ddfeb5554083e2661184b9e57e060ca3ea7e4
Heart script, heart prefab and heart drop from dead enemy implemented in this commit https://github.com/Kenjor97/KriticGamesProject/commit/64c838bf2f5c9dfadf16bff55ea8100630722961
When enemies die they drop a heart. Player's life should restore certain amount or fully restore when he picks the heart.
If player gets 3 Heart Coins it will increase his maximum life by 1 and fully restored.
EXPECTED RESULT:
Enemies which dies drops a heart that restores player's life. If player gets 3 Heart Coins it will increase his maximum life.
Implemented Heart functionality in this script Hearts.cs
Implemented Heart drop from dead enemies in this script EnemyBehaviour.cs
Implemented Heart Coin power up in this script HeartCoinBehaviour.cs