Häufig verwendete Methoden
Häufig verwendete Methoden
Häufig verwendete Methoden
Häufig verwendete Methoden
/// <summary> /// Wrapper piece atack /// </summary> /// <param name="piece">piece to move</param> /// <param name="field">detination field</param> /// <returns>true if captured false cant capture</returns> private bool ValidAtack(Piece piece, Piece field) { return(piece.GetComponent <Queen>().enabled ? piece.GetComponent <Queen>().AtackPiece(field) : piece.AtackPiece(field)); }