示例#1
0
    private IEnumerator setStylesPosition()
    {
        //start drawing the line in the linemanager
        lineManager.startDraw();

        yield return(new WaitForEndOfFrame());
    }
示例#2
0
    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();
    }