Соединение всё со всем что имеется, дописывание стейт-машины
Теперь мне удобно кастить и получать тип камеры, всё вроде работает нормисно
This commit is contained in:
1 parent
4549617275
commit
665114b7dc
28 files changed
+292
-598
No files matched your search
@@ -1,18 +0,0 @@
|
||||
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