/// <summary> /// Called when game is over (with winner or not) /// </summary> private void GameOver(int whoWon) { //Disables interactions and shows win effects gridManager.OnGameEnd(lineWinner); //Show on screen feedback message StartCoroutine(guiController.ShowGameOverInfo(winner + 1)); //Persists final replay file replayManager.PersistFinalReplayFile(); #if DEV Debug.Log(string.Format("Player {0} won on row {1}", whoWon, lineWinner)); foreach (var item in replayManager.replayInfo) { Debug.Log(string.Format("Replay Info: #{0}|Player: {1}|Tile: {2}", item.Key, item.Value.playerID, item.Value.tileID)); } #endif }