示例#1
0
        private void TakePlayerBet(GameInfo gameInfo, Spinner spinner, Vector2 clickLocation)
        {
            var bettedNumber = spinner.CalculateMouseNumber(clickLocation);

            if (PlacedBets[bettedNumber - 1] != null)
            {
                gameInfo.CreateMessage("Number already chosen!");
                return;
            }
            spinner.HighlightedSections[bettedNumber - 1] = bettingPlayer.PlayerColor;
            PlacedBets[bettedNumber - 1] = bettingPlayer;
            playerNum++;

            TakeNextPlayerBet(gameInfo);
        }