Beispiel #1
0
    /// <summary>
    /// Waits for the character piece to finish moving and then sets the character piece to doneMoving.
    /// This is so the player has to wait for the animation to complete before moving to the draw card phase.
    /// </summary>
    /// <returns></returns>
    private IEnumerator WaitForAgent()
    {
        yield return(new WaitUntil(() => pathComplete() == true)); // wait for the character to reach the selected tile

        Piece.ClearHighlights();                                   // clear button highlights
        Piece.doneMove = true;
    }
 public void DontMove()
 {
     _BtnDontMove.SetActive(false);
     _piece.ClearHighlights();
     _piece.doneMove = true;
 }