private void FightButtonClick() { if (FightControl.FightButtonText == "Старт") { StartFight(); return; } if (IsEnd) { if (DoNextStepStory != null && isVictory && IsStory) { DoNextStepStory.Invoke(); return; } Control.BringToFront(); return; } if (isQuery) { FightControl.HealthOfSecondFighter = Step(FirstFighter, FightControl.HealthOfSecondFighter, LogFirst, LogSecond); } else { FightControl.HealthOfFirstFighter = Step(SecondFighter, FightControl.HealthOfFirstFighter, LogSecond, LogFirst); } if (FightControl.HealthOfFirstFighter * FightControl.HealthOfSecondFighter == 0) { FinalBattle(); } }