void SideValueCheck() { diceValue = 0; foreach (DiceSide side in diceSides) { if (side.OnGround) { diceValue = side.sideValue; thrown = true; if (Board.isMultiplayer) { playerOnline.Move(diceValue); return; } if (Dice.turn == "player") { player.MovePlayer(diceValue); } else { enemy.MoveEnemy(diceValue); } } } }
public void OnOkClick() { gameObject.SetActive(false); if (Board.isMultiplayer) { playerOnline.Move(gameEvent.steps); return; } player.MovePlayer(gameEvent.steps); }