public void GameOver() { Time.timeScale = 0f; GameDisplay.SetActive(false); GameOverDisplay.SetActive(true); GameOverScore.GetComponent <TextMeshProUGUI>().text = "Score: " + Score; Advertisement.Show(); }
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 }); }
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); }