/* after the movement according to first/second dice, * update the next location the paritcipent can jump to, according to the other dice. */ public void ShowMovementAfterDice(bool moveByOtherDice, int dice) { gameManager.indexCountMove++; gameManager.HideAllTriangles(); if (!moveByOtherDice) { if (OnSelected.SelectedPlayer.PlayerType == "Black") { OppisteType = "White"; gameManager.IndexPutAccordingToDice[dice] = TriangleIndex + gameManager.dices[dice].diceCount; } else { OppisteType = "Black"; gameManager.IndexPutAccordingToDice[dice] = TriangleIndex - gameManager.dices[dice].diceCount; } // according the current TypePlayer, show according to your current location after movent, if you can relocate the same player according the second dice. int canJumpToOtherDice = gameManager.CheckCanPutThere(gameManager.IndexPutAccordingToDice[dice], OppisteType); if (canJumpToOtherDice != -1) { // show the specific triangles that the participent can jump to gameManager.triangles[canJumpToOtherDice - 1].gameObject.SetActive(true); } } }