示例#1
0
    public MoveCommand(IChessPiece piece, int from, int to)
    {
        movingPiece = piece;
        moveFrom    = from;
        moveTo      = to;

        audioForPieces = piece.gameObject.GetComponent <AudioForPieces>();
        if (audioForPieces)
        {
            audioForPieces.SE_Move();
        }
    }
示例#2
0
 void Start()
 {
     audioPlayer = GetComponent <AudioForPieces>();
 }
示例#3
0
 void Start()
 {
     direction   = team == Affiliation.White ? -1 : 1;
     audioPlayer = GetComponent <AudioForPieces>();
 }