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

        focus = null;
        if (art.paintFinish() == false)
        {
            Destroy(art);
        }
    }
示例#2
0
    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);
        }
    }