public IEnumerator StartBattle() { float delay = 1f; while (true) { if (!participant1.CanBattle()) { StartCoroutine(Victory(participant2, participant1)); yield break; } if (!participant2.CanBattle()) { StartCoroutine(Victory(participant1, participant2)); yield break; } yield return(new WaitForSeconds(delay)); Skirmish(); } }