18 lines
445 B
C#
18 lines
445 B
C#
using Code.Input;
|
|
using UnityEngine;
|
|
using UnityEngine.InputSystem;
|
|
|
|
namespace Code.DI
|
|
{
|
|
public class Bootstrapper : MonoBehaviour
|
|
{
|
|
[SerializeField] private InputActionAsset inputActionAsset;
|
|
|
|
private void Awake()
|
|
{
|
|
var container = new GameObject("DIContainer").AddComponent<DIContainer>();
|
|
|
|
container.Register<IInputService>(new InputService(inputActionAsset));
|
|
}
|
|
}
|
|
} |