Esempio n. 1
0
        internal void PromotePiece(Pawn pawn)
        {
            //my pieces delete pawn and add queen
            Piece promotedPiece = CreatePiece(typeof(Queen), pawn.Side);


            pawn.CurrentCell.PlacePiece(promotedPiece);
            promotedPiece.CurrentCell = pawn.CurrentCell;

            promotedPiece.transform.position = pawn.transform.position;

            pawn.Kill();
        }