Система здоровья

This commit is contained in:
ThomasCharester committed 2025-10-29 16:02:05 +03:00
1 parent 2335908a90
commit ab9d444072
6 files changed
+60 -1

No files matched your search

@@ -0,0 +1,18 @@
using UnityEngine;
using Code.Configs;
using Reflex.Attributes;
namespace Code.Gameplay.Player
{
public class PlayerFactory
{
[Inject] PlayerConfig _playerConfig;
public PlayerHealthPoints CreatePlayerHP(int count = -1)
{
if (count < 0) count = _playerConfig.maxHealth;
return new PlayerHealthPoints(count);
}
}
}