public MoveCommand(IChessPiece piece, int from, int to) { movingPiece = piece; moveFrom = from; moveTo = to; audioForPieces = piece.gameObject.GetComponent <AudioForPieces>(); if (audioForPieces) { audioForPieces.SE_Move(); } }
void Start() { audioPlayer = GetComponent <AudioForPieces>(); }
void Start() { direction = team == Affiliation.White ? -1 : 1; audioPlayer = GetComponent <AudioForPieces>(); }