public void Loose(IPlayerManager looser) { if (enemy == null) { return; } if (player == (Object)looser) { enemy.EndCombat(true); enemy = null; player.EndCombat(false); } else if (enemy == looser) { enemy.EndCombat(false); enemy = null; if (enemyHolder.childCount <= enemyIndex) { winScreen.SetActive(true); } else { player.EndCombat(true); } } }