예제 #1
0
 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;
 }
예제 #2
0
 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;
     }
 }