Exemplo n.º 1
0
    public void answerClicked(int i)
    {
        currentTriviaRound.answerChosen(i);

        if (gameLogic.currentlyNetworking())
        {
            if (gameLogic.isServer)
            {
                gameLogic.ourGamestate.RpcUpdateServerAnswerCorrect(currentTriviaRound.correct);
                gameLogic.ourGamestate.RpcUpdateServerAnswerTime(currentTriviaRound.answerTime);
            }
            else
            {
                gameLogic.ourGamestate.CmdUpdateClientAnswerCorrect(currentTriviaRound.correct);
                gameLogic.ourGamestate.CmdUpdateClientAnswerTime(currentTriviaRound.answerTime);
            }
        }
    }