Example #1
0
    void DrawingEnd()
    {
        if (focus == null)
        {
            return;
        }
        Swatch3d art = focus.GetComponent <Swatch3d>() as Swatch3d;

        focus = null;
        if (art.paintFinish() == false)
        {
            Destroy(art);
        }
    }
    void HandleUp()
    {
        brush.gameObject.SetActive(false);
        Debug.Log("Finished " + focus);
        if (focus == null)
        {
            return;
        }
        Swatch3d art = focus.GetComponent <Swatch3d>() as Swatch3d;

        focus = null;
        if (art.paintFinish() == false)
        {
            Destroy(art);
        }
    }