Система здоровья
This commit is contained in:
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user