private void Kill(PieceObject pieceObject) { Piece piece = GetPiece(pieceObject.position); movesWithoutKill = 0; OnKilled.Notify(piece); if (piece is King) { ShowGameOver(chess.currentTeam); } pieceObject.Kill(() => { Destroy(pieceObject); }); }