Initial commit
This commit is contained in:
22
Assets/Scripts/LifeTimeScope/GameLifeTimeScope.cs
Normal file
22
Assets/Scripts/LifeTimeScope/GameLifeTimeScope.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using JetBrains.Annotations;
|
||||
using UnityEngine;
|
||||
using VContainer;
|
||||
using VContainer.Unity;
|
||||
|
||||
public class GameLifeTimeScope : LifetimeScope
|
||||
{
|
||||
[SerializeField] private InputReader inputReader;
|
||||
protected override void Configure(IContainerBuilder builder)
|
||||
{
|
||||
|
||||
builder.RegisterComponentInHierarchy<PlatformPool>();
|
||||
builder.RegisterComponentInHierarchy<JumpingBall>();
|
||||
builder.RegisterComponentInHierarchy<PlatformManager>();
|
||||
builder.RegisterComponent<IInputReader>(inputReader);
|
||||
}
|
||||
|
||||
public void IsWorking()
|
||||
{
|
||||
Debug.Log("True");
|
||||
}
|
||||
}
|
||||
2
Assets/Scripts/LifeTimeScope/GameLifeTimeScope.cs.meta
Normal file
2
Assets/Scripts/LifeTimeScope/GameLifeTimeScope.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 5f8d7d43c7f4a3d4d876897769dbf418
|
||||
Reference in New Issue
Block a user