public MoveCommand(IChessPiece piece, int from, int to) { movingPiece = piece; moveFrom = from; moveTo = to; audioForPieces = piece.gameObject.GetComponent <AudioForPieces>(); if (audioForPieces) { audioForPieces.SE_Move(); } }