async Task OnMatchEnd(MatchEndEvent evt) { if (evt.MatchConfig.Time > 0 && evt.MatchState.Time <= 0) { ObjectUtil.SetActive(TimeUpDisplay, true); } else { ObjectUtil.SetActive(GameEndedDisplay, true); } await Task.Delay((int)(PostGameWait * 1000)); }
async Task OnMatchEnd(MatchEndEvent evt) { ObjectUtil.SetActive(TextUI.gameObject, true); if (evt.MatchConfig.Time > 0 && evt.MatchState.Time <= 0) { Time.Apply(AudioPlayer, TextUI); } else { Game.Apply(AudioPlayer, TextUI); } await Task.Delay((int)(PostGameWait * 1000)); }
async Task OnMatchEnd(MatchEndEvent evt) { ObjectUtil.SetActive(TextUI.gameObject, true); if (evt.MatchConfig.Time > 0 && evt.MatchState.Time <= 0) { UpdateTextUI("TIME!", TimeAudioClip); } else { UpdateTextUI("GAME!", GameAudioClip); } await Task.Delay((int)(PostGameWait * 1000)); }