void OnTriggerEnter(Collider piece) { containedPiece = piece.GetComponent <PawnBehaviourScript>(); containedPiece.SetCurrentPosition(column, row); occupado = true; if (setupStep && (row == 7 || row == 8)) { containedPiece.colour = "Black"; } setupStep = false; }
public void AcceptPiece(PawnBehaviourScript piece) { //containedPiece.enabled = false; containedPiece = piece; containedPiece.SetCurrentPosition(column, row); occupado = true; if (setupStep && (row == 7 || row == 8)) { containedPiece.colour = "Black"; setupStep = false; } }