Beispiel #1
0
 public void HostScoreReceived(Score score)
 {
     if (MainGame.Instance.HostOnly)
     {
         clientData.updateScore(score);
     }
 }
Beispiel #2
0
        public void ScoreReceived(Score score)
        {
            debugOut("Score received: " + score.ID + " | " + score.Value);

            clientData.updateScore(score);

            if (score.ID == network.Me.ID)
            {
                String message = score.Value - previousScore > 0 ? "You gained " + (score.Value - previousScore) + " points that round!" : "You lost " + ((score.Value - previousScore) * -1) + " points that round!";
                previousScore = score.Value;
                mainGame.GeneralMessageQueue.Enqueue(message);
                Thread.Sleep(1000);
            }
        }