private IEnumerator setStylesPosition() { //start drawing the line in the linemanager lineManager.startDraw(); yield return(new WaitForEndOfFrame()); }
private void HandDrawInput_ClickedDown(GameObject hand) { //set hand drawingHand = hand; if (drawOnObject) { //draw on object moveStyles(GetRayPosition()); } else { //draw on hand moveStyles(drawingHand.transform.position); } //start moving the styles movingStyles = true; //start drawing lineManager.startDraw(); }