20 lines
503 B
C#
20 lines
503 B
C#
using Code.DI;
|
|
using Code.Gameplay.Player;
|
|
using Code.Input;
|
|
using UnityEngine;
|
|
|
|
namespace Code.UI
|
|
{
|
|
public class GameplayController : MonoBehaviour
|
|
{
|
|
private IInputService _inputService;
|
|
|
|
public void Start()
|
|
{
|
|
_inputService = FindFirstObjectByType<DIContainer>().Resolve<IInputService>();
|
|
_inputService.EnableMap(ActionMapping.Gameplay);
|
|
|
|
FindFirstObjectByType<PlayerMovement>().Construct(_inputService);
|
|
}
|
|
}
|
|
} |