added enemy factory and pool

This commit is contained in:
Mausham
2025-12-31 22:09:12 +05:45
parent 3470ca4dc6
commit d258428496
10 changed files with 94 additions and 31 deletions

View File

@@ -7,6 +7,8 @@ namespace Darkmatter.Core
{
public interface IEnemyPawn : IDamageable
{
GameObject GameObject { get; }
void InitializeFromFactory(Transform player,List<Transform> patrolPoints);
bool isDead { get; }
NavMeshAgent EnemyAI { get; }

View File

@@ -5,6 +5,7 @@ namespace Darkmatter.Core
{
public interface IDamageable
{
event Action<float> OnHealthDecreased;
float Health { get; set; }
void TakeDamage(float damage);