public void OnRoundComplete(RoundCompleteResponse response) { _isEliminated = false; ResetPlayerPanel(); for (int i = 0; i < response.result.Count; i++) { resultPanels[i].UpdateState(true); resultPanels[i].PlayerPanelReset(); resultPanels[i].SetDetails(response.result[i]); //if (response.result[i].isEliminated && response.result[i].userId == int.Parse(GameVariable.GameVariables.userId) || response.roundOver) //{ // OnPlayerRemove(); //} } for (int i = response.result.Count; i < resultPanels.Count; i++) { resultPanels[i].UpdateState(false); } }
internal void SetRoundCompleteData(RoundCompleteResponse response) { resultScreen.OnRoundComplete(response); }
internal void SetResultScreeenData(RoundCompleteResponse response) { gameplayController.SetRoundCompleteData(response); }
private void OnRoundComplete(RoundCompleteResponse response) { //Show Results UiManager.GetInstance.EnableResultScreen(); UiManager.GetInstance.SetResultScreeenData(response); }