public int GetRank(Award a)
 {
     a.Calculate();
     return a.total != 0 ? (a.total == a.count ? 4 : 0) : Mathf.Min(a.level, ranks.Length - 2);
 }
 public int GetRank(Award a)
 {
     a.Calculate();
     return(a.total != 0 ? (a.total == a.count ? 4 : 0) : Mathf.Min(a.level, ranks.Length - 2));
 }