Ejemplo n.º 1
0
    void OnMouseDown()
    {
        if (EventSystem.current.IsPointerOverGameObject())
        {
            return;
        }

        if (getBoard().boardMatrix[posX, posY] != null)
        {
            Orb currentOrb = getBoard().boardMatrix[posX, posY] as Orb;
            if (currentOrb)
            {
                currentOrb.OnMouseDown();
                return;
            }
        }

        getBoard().NodeClicked(this);
    }