Beispiel #1
0
    void OnMouseUp()
    {
        Debug.Log("on mouse up");
        //Vector3 cursorPoint = new Vector3(Input.mousePosition.x, Input.mousePosition.y, screenPoint.z);
        //Vector3 cursorPosition = Camera.main.ScreenToWorldPoint(cursorPoint) + offset;

        isdrag = true;

        transform.position = originalP;
        CB.checkMouseClick(CellNum);

        image.sprite = BucketList[0];
        //Debug.Log(cursorPosition);
    }
Beispiel #2
0
    /**
     * Function called when a cell is clicked on to get the number of the cell clicked on
     */

    public void clickOnCell(int cellNum)
    {
        cellButtons.checkMouseClick(cellNum);
    }