Esempio n. 1
0
    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);
                }
            }
        }
    }
Esempio n. 2
0
    public void OnOkClick()
    {
        gameObject.SetActive(false);

        if (Board.isMultiplayer)
        {
            playerOnline.Move(gameEvent.steps);
            return;
        }
        player.MovePlayer(gameEvent.steps);
    }