예제 #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
파일: Pawn.cs 프로젝트: saporter/RPG-Chess
 void Start()
 {
     direction   = team == Affiliation.White ? -1 : 1;
     audioPlayer = GetComponent <AudioForPieces>();
 }