// Start is called before the first frame update void Start() { strokeSketchObject = Instantiate(StrokeSketchObjectPrefab).GetComponent <StrokeSketchObject>(); strokeSketchObject.SetStrokeDiameter(.5f); strokeSketchObject2 = Instantiate(defaults.LinearInterpolationStrokeSketchObjectPrefab).GetComponent <StrokeSketchObject>(); strokeSketchObject2.SetStrokeDiameter(.5f); }
// Start is called before the first frame update void Start() { strokeSketchObject = Instantiate(StrokeSketchObjectPrefab).GetComponent <StrokeSketchObject>(); strokeSketchObject.SetStrokeDiameter(.5f); //lineSketchObject2 = Instantiate(LineSketchObjectPrefab).GetComponent<LineSketchObject>(); strokeSketchObject2 = Instantiate(defaults.LinearInterpolationStrokeSketchObjectPrefab).GetComponent <StrokeSketchObject>(); patchSketchObject = Instantiate(defaults.PatchSketchObjectPrefab).GetComponent <PatchSketchObject>(); ribbonSketchObject = Instantiate(defaults.RibbonSketchObjectPrefab).GetComponent <RibbonSketchObject>(); }
IEnumerator changeDiameter() { yield return(new WaitForSeconds(5)); strokeSketchObject.SetStrokeDiameter(.1f); yield return(new WaitForSeconds(2)); strokeSketchObject.DeleteControlPoint(); strokeSketchObject.DeleteControlPoint(); }
IEnumerator changeDiameter() { yield return(new WaitForSeconds(5)); strokeSketchObject.SetStrokeDiameter(.1f); }