コード例 #1
0
 public bool Equals(PlayerScore other)
 {
     return(id == other.id &&
            name == other.name &&
            score == other.score &&
            EqualityComparer <Color32> .Default.Equals(color, other.color) &&
            playerFlags.Equals(other.playerFlags));
 }
コード例 #2
0
 public bool Equals(PlayerScore other)
 {
     return(id == other.id &&
            name == other.name &&
            score == other.score &&
            color.r == other.color.r &&
            color.g == other.color.g &&
            color.b == other.color.b &&
            color.a == other.color.a &&
            playerFlags.Equals(other.playerFlags));
 }