Exemplo n.º 1
0
    public void OnEndDrag(PointerEventData eventData)
    {
        foreach (var item in eventData.hovered)
        {
            var socket = item.GetComponent <Socket>();
            if (socket != null && socket.type == SocketType.Input)
            {
                SignalSystem.InvokeRequestSuccesWith(socket);
                return;
            }
        }

        SignalSystem.InvokeRequestFailed();
    }