mirror of
https://github.com/Bragin-Stepan/project-entity.git
synced 2026-03-02 22:31:10 +00:00
38 lines
966 B
C#
38 lines
966 B
C#
using _Project.Develop.Runtime.Entities;
|
|
using _Project.Develop.Runtime.Utils.InputManagement;
|
|
using Assets._Project.Develop.Runtime.Infrastructure.DI;
|
|
using UnityEngine;
|
|
|
|
namespace _Project.Develop.Runtime.Logic.Gameplay.Features
|
|
{
|
|
public class TestGameplay : MonoBehaviour
|
|
{
|
|
private DIContainer _container;
|
|
private EntitiesFactory _entitiesFactory;
|
|
|
|
private Entity _entity;
|
|
|
|
private bool _isRunning;
|
|
|
|
public void Initialize(DIContainer container)
|
|
{
|
|
_container = container;
|
|
|
|
_container.Resolve<IPlayerInput>().Enable();
|
|
_entitiesFactory = _container.Resolve<EntitiesFactory>();
|
|
}
|
|
|
|
public void Run()
|
|
{
|
|
_entity = _entitiesFactory.CreateGhostEntity(Vector3.zero);
|
|
|
|
_isRunning = true;
|
|
}
|
|
|
|
private void Update()
|
|
{
|
|
if (_isRunning == false)
|
|
return;
|
|
}
|
|
}
|
|
} |