private static IEnumerator DisplayFightResultFeedback(FightStatus fightStatus) { switch (GameStatus.fightType) { case FightType.None: case FightType.Versus: yield break; case FightType.BossFight: if (fightStatus.endReason != FightStatusEndReason.Lose) { yield break; } break; default: throw new ArgumentOutOfRangeException(); case FightType.TeamVersus: break; } FightState instance = FightState.instance; if (instance != null) { yield return(instance.ShowFightEndFeedback(fightStatus.endReason)); } else { Log.Error("Could not find fight state.", 189, "C:\\BuildAgents\\AgentB\\work\\cub_client_win64_develop\\client\\DofusCube.Unity\\Assets\\Core\\Code\\Fight\\Events\\FightEndedEvent.cs"); } }