private Color GetSexColor(Trainer.Sex sex) { return(sex == Trainer.Sex.Male ? maleIconColor : femaleIconColor); }
public MonGearWorldRankingTableRowViewmodel(string rank, string trainerFullname, Trainer.Sex sex, string countryCode, string rating) { this.rank = rank; this.trainerFullname = trainerFullname; this.sex = sex; this.countryCode = countryCode; this.rating = rating; }
private Sprite GetSexIcon(Trainer.Sex sex) { return(sex == Trainer.Sex.Male ? maleIcon : femaleIcon); }