コード例 #1
0
 public void Scored(int goalNumber)
 {
     game.currentState = GameState.scored;
     if (game.numberOfPaddles == 2)
     {
         Debug.Log("SCORED" + goalNumber);
         if (goalNumber == 0)
         {
             playerThatScored = 1;
         }
         if (goalNumber == 1)
         {
             playerThatScored = 0;
         }
         playerThatGotScoredOn          = goalNumber;
         game.scores[playerThatScored] += 1;
         uiReference.UpdateScores();
     }
     if (game.numberOfPaddles == 4)
     {
         Debug.Log("SCORED" + goalNumber);
     }
 }