private void KickNoParty(FightTeam team) { if (myState != FightState.STARTING) { return; } foreach (Fighter fighter in team.GetFighters()) { if (!team.CanJoin(fighter.Character)) { PlayerLeave(fighter); } } }
public bool CanJoin(Character player, FightTeam team) { return(myState == FightState.STARTING && team.CanJoin(player)); }