Переполох в камере, насрано
This commit is contained in:
1 parent
6148889fc1
commit
981d081bed
12 files changed
+69
-36
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 PlayerHealth CreatePlayerHP(int count = -1)
|
||||
{
|
||||
if (count < 0) count = _playerConfig.maxHealth;
|
||||
|
||||
return new PlayerHealth(count);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user