// Start is called before the first frame update
    void Start()
    {
        lineSketchObject = Instantiate(LineSketchObjectPrefab).GetComponent <LineSketchObject>();
        lineSketchObject.SetLineDiameter(.5f);

        lineSketchObject2 = Instantiate(defaults.LinearInterpolationLineSketchObjectPrefab).GetComponent <LineSketchObject>();
        lineSketchObject2.SetLineDiameter(.5f);
    }
    IEnumerator changeDiameter()
    {
        yield return(new WaitForSeconds(5));

        lineSketchObject.SetLineDiameter(.1f);
        yield return(new WaitForSeconds(2));

        lineSketchObject.DeleteControlPoint();
        lineSketchObject.DeleteControlPoint();
    }
Exemplo n.º 3
0
    IEnumerator changeDiameter()
    {
        yield return(new WaitForSeconds(5));

        lineSketchObject.SetLineDiameter(.1f);
    }