IEnumerator MovementPhase(int move) { // Movement turn skiped if (move == -1) { _piece.canMove = false; _piece.doneMove = true; } else { DisplayRollAmount(); _piece.canMove = false; _turnPhase = Phase.Movement; _BtnDontMove.SetActive(true); _piece.DisplayAvaliableMovement(move); // display movement yield return(new WaitUntil(() => _piece.doneMove == true)); } }
private void MoveAnywhere() { _piece = GameManager.instance.CurrentPiece; _piece.DisplayAvaliableMovement(100); // display all spaces on board for user to select }