예제 #1
0
 public void GameOver()
 {
     Time.timeScale = 0f;
     GameDisplay.SetActive(false);
     GameOverDisplay.SetActive(true);
     GameOverScore.GetComponent <TextMeshProUGUI>().text = "Score: " + Score;
     Advertisement.Show();
 }
예제 #2
0
        public void reportGameOver(GameOverState winState, string[] winOrder)
        {
            GameOverScore score = new GameOverScore()
            {
                winOrder = winOrder, winState = winState
            };

            Msf.Connection.SendMessage((short)CustomMasterServerMSG.gameOverResult, new GameOverMsg()
            {
                fullGameHistory = historyController.getFullLog(), score = score, roomID = broadcastID
            });
        }
예제 #3
0
        public void testGameOver()
        {
            int    ct_score            = 1;
            int    t_score             = 16;
            string test                = $"Game Over: competitive mg_active de_cache score {ct_score}:{t_score} after 23 min";
            GameOverScoreParser parser = new GameOverScoreParser();

            Assert.IsTrue(parser.IsMatch(test));
            GameOverScore score = parser.Parse(test);

            Assert.AreEqual(ct_score, score.CTScore);
            Assert.AreEqual(t_score, score.TScore);
        }