Beispiel #1
0
        public void ResetScore()
        {
            if (Room == null)
            {
                GameScore = new GameScore();
                return;
            }
            switch (Room.GameRule)
            {
            case EGameRule.Touchdown:
                GameScore = new TDGameScore();
                break;

            case EGameRule.Deathmatch:
                GameScore = new DMGameScore();
                break;

            case EGameRule.Survival:
                GameScore = new SurvivalGameScore();
                break;
            }
        }
Beispiel #2
0
 public void ResetScore()
 {
     if (Room == null)
     {
         GameScore = new GameScore();
         return;
     }
     switch (Room.GameRule)
     {
         case EGameRule.Touchdown:
             GameScore = new TDGameScore();
             break;
         case EGameRule.Deathmatch:
             GameScore = new DMGameScore();
             break;
         case EGameRule.Survival:
             GameScore = new SurvivalGameScore();
             break;
     }
 }