private void playerBid() { AuctionHandler auction = State.getAuctionHandler(); App app = UnityEngine.Object.FindObjectOfType <App>(); int playerIndex = app.GetHumanIndex(); auction.setIndexOfHighestBidderSoFar(playerIndex); auction.setCurrentBid(auction.getPlayerBid(playerIndex)); playerTurn = false; }
private void playerBid() { Debug.Log("Player bids >>>>>>>>>>>>>>>>>>>>>>>>>>>>"); AuctionHandler auction = State.getAuctionHandler(); App app = UnityEngine.Object.FindObjectOfType <App>(); int playerIndex = app.GetHumanIndex(); int playerBid = auction.getTempHumanBidLevel(); auction.setPlayerBid(playerIndex, playerBid); auction.setIndexOfHighestBidderSoFar(playerIndex); //State.CurrentColonyAuctionBid = auction.getPlayerBid(playerIndex); State.UpdateColonyAuctionBid(auction.getPlayerBid(playerIndex)); auction.incrementBiddingPosition(); nextAuctionPhase(); }