public InteractController(IInputKeyPressable interact, InteractionSwitch interactionSwitch, Transform cameraTransform, CrosshairView crosshairView) { _cameraTransform = cameraTransform; _interact = interact; _crosshairView = crosshairView; _interact.OnKeyPressed += TryInteract; _interactionSwitch = interactionSwitch; }
public InputModel() { _pcInputHorizontal = new PCInputHorizontal(); _pcInputVertical = new PCInputVertical(); _pcInputMouseX = new PCInputMouseX(); _pcInputMouseY = new PCInputMouseY(); _pcInputInteract = new PCInputKey(AxisManager.INTERACT); _pcInputSave = new PCInputKey(AxisManager.SAVE); _pcInputLoad = new PCInputKey(AxisManager.LOAD); _pcInputMap1 = new PCInputKey(AxisManager.MAP1); _pcInputMap2 = new PCInputKey(AxisManager.MAP2); }
public SaveController(IInputKeyPressable load, IInputKeyPressable save, SaveDataRepository saveDataRepository, IPlayerFactory playerFactory, Transform cameraTransform, TaskModel taskModel) { _taskModel = taskModel; _saveDataRepository = saveDataRepository; _playerFactory = playerFactory; _cameraTransform = cameraTransform; _load = load; _save = save; _tasks = taskModel.GetTasks(); _load.OnKeyPressed += LoadGame; _save.OnKeyPressed += SaveGame; }