public void DefenderDies(Character defender) { if (Team1.Contains(defender)) { Team1.Remove(defender); if (Team1.Count <= 0) { WinnerTeam = Team2; } } if (Team2.Contains(defender)) { Team2.Remove(defender); if (Team2.Count <= 0) { WinnerTeam = Team1; } } }
public bool IsParticipant(Entity entity) { return(Team1.Contains(entity) || Team2.Contains(entity)); }