private void UpdatePreview()
    {
        if (MouseInputUIBlocker.BlockedByUI)
        {
            return;
        }
        RemoveCopyPoints();
        lastpos = Highlight.pos;
        if (Highlight.pos.x == -1)
        {
            return;
        }

        foreach (var mrk in CopyClipboard)
        {
            if (Consts.IsWithinMapBounds(Highlight.pos + mrk))
            {
                Vector3 pos = Highlight.pos + mrk;
                // height of preview depends on pasting mode
                if (pastingMode == PastingMode.fixed_height)
                {
                    pos.Set(pos.x, fixed_height + mrk.y, pos.z);
                }

                GameObject znacznik = Consts.CreateMarking(seethrough, pos, false);
                Markings.Add(znacznik);
            }
        }
    }
    void AddPoint()
    {
        GameObject znacznik = Consts.CreateMarking(white);

        Profiles.Last().Add(znacznik);
        if (Profiles.Count > 1 && Profiles.Last().Count == Profiles[0].Count)
        {
            StateSwitch(ProfileState.SELECTING_P1);
        }
        else if (Profiles.Count == 1 && Profiles[0].Count == 2)
        {
            StateSwitch(ProfileState.MANUAL_SELECTION);             // Allow Enter
        }
    }
    void AddProfile()
    {
        Vector3[] ProfilePoints = GetRemainingPoints(Profiles.Last().Last().transform.position, Highlight.pos);
        if (!IsNewProfileValid(ProfilePoints.Length + 1))
        {
            return;
        }
        foreach (Vector3 pos in ProfilePoints)
        {
            Profiles.Last().Add(Consts.CreateMarking(white, pos));
        }

        StateSwitch(ProfileState.SELECTING_P1);
    }
    void Add_P1()
    {
        GameObject znacznik = Consts.CreateMarking(red);

        Profiles.Add(new List <GameObject>()
        {
            znacznik
        });
        if (!Input.GetKey(KeyCode.LeftControl))
        {
            StateSwitch(ProfileState.SELECTING_P2);
        }
        else
        {
            StateSwitch(ProfileState.MANUAL_SELECTION);
        }
    }