コード例 #1
0
    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);
    }
コード例 #2
0
    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();
    }
コード例 #3
0
    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;
        }
    }
コード例 #4
0
 public override void CreateByPoint(HandlePoint activeHandlePoint)
 {
     HandlePoints.Add(activeHandlePoint);
 }
コード例 #5
0
 public void AddHandlePoint(HandlePoint handlePoint)
 {
     HandlePoints.Add(handlePoint);
 }