示例#1
0
 public void RemovePiece(Piece piece)
 {
     if (piece != null && ActivePieces.Contains(piece))
     {
         ActivePieces.Remove(piece);
     }
 }
示例#2
0
 public void AddPiece(Piece piece)
 {
     if (piece != null && !ActivePieces.Contains(piece) && piece.TeamColor == TeamColor)
     {
         ActivePieces.Add(piece);
     }
 }