Ejemplo n.º 1
0
    public bool Collected(bool isPlayerOne, int blockCollected)
    {

        if (isPlayerOne)
        {
            playerOneBlocksCollected[blockCollected] = true;
            inGameUIManager_Ref.ActivateImage(true, blockCollected);
            playerOneBlocksLanded++;
        }
        else
        {
            playerTwoBlocksCollected[blockCollected] = true;
            inGameUIManager_Ref.ActivateImage(false, blockCollected);
            playerTwoBlocksLanded++;
        }

        inGameUIManager_Ref.UpdatePlayerStatus(WhoIsInTheLead());

        return CheckIfSomeoneWon();
    }