public void changePosY(string text)
    {
        HandlePoints handlePoints = GameObject.Find("Main Camera").GetComponent <HandlePoints>();
        int          index        = handlePoints.pointsUI.FindIndex(x => x.GetComponent <PointUI>().id == id);

        handlePoints.target = GameObject.Find("Main Camera").GetComponent <Interpolation>().points[index].transform;
        handlePoints.reloadPositionByUiY(text);
    }
    public void removerPoint()
    {
        HandlePoints  handlePoints  = GameObject.Find("Main Camera").GetComponent <HandlePoints>();
        Interpolation interpolation = GameObject.Find("Main Camera").GetComponent <Interpolation>();
        int           index         = handlePoints.pointsUI.FindIndex(x => x.GetComponent <PointUI>().id == id);

        interpolation.removePoint(index);
        verifyCanRemove();
    }
    public static void verifyCanRemove()
    {
        HandlePoints handlePoints = GameObject.Find("Main Camera").GetComponent <HandlePoints>();

        if (handlePoints.pointsUI.Count == 1)
        {
            handlePoints.pointsUI[0].GetComponent <PointUI>().removeBtn.transform.localScale = Vector2.zero;
        }
        else
        {
            handlePoints.pointsUI[0].GetComponent <PointUI>().removeBtn.transform.localScale = Vector2.one;
        }
    }
 public override void CreateByPoint(HandlePoint activeHandlePoint)
 {
     HandlePoints.Add(activeHandlePoint);
 }
 public void AddHandlePoint(HandlePoint handlePoint)
 {
     HandlePoints.Add(handlePoint);
 }