feat: add entity mage

This commit is contained in:
Bragin Stepan
2026-02-22 00:04:06 +05:00
parent af20400b84
commit c73c15dd4a
5 changed files with 576 additions and 4 deletions

View File

@@ -37,6 +37,7 @@ namespace Assets._Project.Develop.Runtime.Utilities.SceneManagement
public const string Projectile = "Entities/Projectile";
public const string Hero = "Entities/Hero";
public const string Ghost = "Entities/Ghost";
public const string Mage = "Entities/Mage";
}
private static readonly Dictionary<Type, string> _scriptableObject = new()

View File

@@ -30,7 +30,7 @@ namespace _Project.Develop.Runtime.Entities
_playerInput = container.Resolve<IPlayerInput>();
}
public Entity CreateHeroEntity(Vector3 position)
public Entity CreateHero(Vector3 position)
{
Entity entity = CreateEmpty();
@@ -127,8 +127,17 @@ namespace _Project.Develop.Runtime.Entities
return entity;
}
public Entity CreateMage(Vector3 position)
{
Entity entity = CreateEmpty();
public Entity CreateGhostEntity(Vector3 position)
_monoEntitiesFactory.Create(entity, position, PathToResources.Entity.Mage);
return entity;
}
public Entity CreateGhost(Vector3 position)
{
Entity entity = CreateEmpty();

View File

@@ -22,8 +22,8 @@ namespace _Project.Develop.Runtime.Logic.Gameplay.Features
public void Run()
{
_entitiesFactory.CreateGhostEntity(Vector3.zero + Vector3.forward * 5);
_entitiesFactory.CreateHeroEntity(Vector3.zero);
_entitiesFactory.CreateMage(Vector3.zero + Vector3.forward * 5);
_entitiesFactory.CreateHero(Vector3.zero);
_isRunning = true;
}