Exemplo n.º 1
0
    private void DragStop()
    {
        Plug p = _dragObject.GetComponent <Plug>();

        if (p != null)
        {
            if (!p.AttemptPlugin())
            {
                _cmd.CmdGiveupCordAuth(_gc.GetComponentInParents <Cord>(_dragObject.gameObject).gameObject);
            }
        }
        _dragObject.freezeRotation = false;
        _dragObject = null;
    }