private void HandleTriggerCollision(object sender, Transform checkpointTransform)
 {
     if (checkpointTransform.tag.Equals("TrackPoint"))
     {
         checkpointsPath.GetNextCheckPointAndCheckIn(shipModelView.transform, checkpointTransform);
         directionArrow.CheckpointDirection = checkpointsPath.GetNextGatePoint(shipModelView.transform);
     }
 }
    private void OnTriggerEnter(Collider other)
    {
        if (other.CompareTag("TrackPoint"))
        {
            currentAim = trackPath.GetNextCheckPointAndCheckIn(transform, other.transform);
            //currentAim = trackPath.GetNextCheckPointPosition(transform);

            Debug.Log(trackPath.GetNextGatePoint(transform).ToString());
        }
    }
    public PlayerPilotController(PlayerPilotModelView player, ShipModelView ship, TrackPath checkpoints, DirectionArrowModelView dirHUDArrow)
    {
        playerModelView = player;
        shipModelView   = ship;
        checkpointsPath = checkpoints;
        directionArrow  = dirHUDArrow;

        checkpointsPath.SetObjPosition(shipModelView.transform, ship, true, true);
        directionArrow.CheckpointDirection = checkpointsPath.GetNextGatePoint(shipModelView.transform);
        directionArrow.ShipDirection       = shipModelView.transform;

        playerModelView.OnMovingInput       += HandleMovingInput;
        InputControl.Instance.OnActionInput += HandleActionInput;

        playerModelView.OnTriggerCollision += HandleTriggerCollision;
    }