mirror of
https://github.com/Bragin-Stepan/project-entity.git
synced 2026-03-02 22:31:10 +00:00
feat: add state machine
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
using Assets._Project.Develop.Runtime.Infrastructure.DI;
|
||||
using Assets._Project.Develop.Runtime.Utilities.CoroutinesManagement;
|
||||
|
||||
namespace Assets._Project.Develop.Runtime.Utilities.Timer
|
||||
{
|
||||
public class TimerServiceFactory
|
||||
{
|
||||
private readonly DIContainer _container;
|
||||
|
||||
public TimerServiceFactory(DIContainer container)
|
||||
{
|
||||
_container = container;
|
||||
}
|
||||
|
||||
public TimerService Create(float cooldown)
|
||||
=> new TimerService(cooldown, _container.Resolve<ICoroutinesPerformer>());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user