mirror of
https://github.com/Bragin-Stepan/project-entity.git
synced 2026-03-05 07:41:10 +00:00
feat: add entity mage
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user