Esempio n. 1
0
    public void dropPiece()
    {
        if (moving == null)
        {
            return;
        }
        Debug.Log("Dropado");

        FindObjectOfType <AudioManager>().Play("Swap"); //Audio Queue

        if (!newIndex.Equals(moving.index))
        {
            game.flipPieces(moving.index, newIndex, true);
        }
        else
        {
            game.resertPiece(moving);
        }
        moving = null;
    }