Ejemplo n.º 1
0
    private void ungrab()
    {
        if (isGrabbing && currentBlock != null)
        {
            Debug.Log("ungrabbing");
            claw.isGrasping = false;
            isGrabbing      = false;

            //let it go, let it go
            BlockScript bs = currentBlock.GetComponent <BlockScript>();
            if (bs != null)
            {
                bs.Release();
            }
        }
    }