public MouseControlService( Transform player, MovementEventRepository movementEventRepository, DirectionHelper directionHelper, PickupEventRepository pickupEventRepository, InteractWithNpcEventRepository interactWithNpcEventRepository, NewTextEventRepository newTextEventRepository, FinishDialogueEventRepository finishDialogueEventRepository, InteractWithSceneTransferEventRepository interactWithSceneTransferEventRepository, StartDialogueEventRepository startDialogueEventRepository, PlayerConfig config) { this.movementEventRepository = movementEventRepository ?? throw new ArgumentNullException(nameof(movementEventRepository)); this.directionHelper = directionHelper ?? throw new ArgumentNullException(nameof(directionHelper)); this.pickupEventRepository = pickupEventRepository ?? throw new ArgumentNullException(nameof(pickupEventRepository)); this.player = player; this.newTextEventRepository = newTextEventRepository ?? throw new ArgumentNullException(nameof(newTextEventRepository)); this.finishDialogueEventRepository = finishDialogueEventRepository ?? throw new ArgumentNullException(nameof(finishDialogueEventRepository)); this.interactWithSceneTransferEventRepository = interactWithSceneTransferEventRepository ?? throw new ArgumentNullException(nameof(interactWithSceneTransferEventRepository)); this.startDialogueEventRepository = startDialogueEventRepository; this.interactWithNpcEventRepository = interactWithNpcEventRepository ?? throw new ArgumentNullException(nameof(interactWithNpcEventRepository)); this.config = config ?? throw new ArgumentNullException(nameof(config)); previousPointClicked = new Vector3(0, 0, 0); previousClickDateTime = DateTime.UtcNow; }
public PickupService( PickupEventRepository pickupEventRepository, MovementEventRepository movementEventRepository, AddToInventoryEventRepository addToInventoryEventRepository, Transform player, PlayerConfig config) { this.pickupEventRepository = pickupEventRepository ?? throw new ArgumentNullException(nameof(pickupEventRepository)); this.movementEventRepository = movementEventRepository ?? throw new ArgumentNullException(nameof(movementEventRepository)); this.addToInventoryEventRepository = addToInventoryEventRepository ?? throw new ArgumentNullException(nameof(addToInventoryEventRepository)); this.config = config ?? throw new ArgumentNullException(nameof(config)); this.player = player; }