private void ChooseProperty_ChangeValueByTime(TileController tile) { if (tile) { if (tileLucky.percentage != 0) { TileController_Country countryTile = (TileController_Country)tile; countryTile.roundsWithMultiplier = 3; countryTile.SetupMultiplier(tileLucky.percentage, countryTile.Owner); } } board.ResetBoard(); clicked = true; }
private void ChooseProperty_BackToBank(TileController tile) { if (tile) { if (tile.GetType() == typeof(TileController_Country)) { TileController_Country countryTile = (TileController_Country)tile; countryTile.SetupMultiplier(100, countryTile.Owner); countryTile.Owner = null; countryTile.UpgradeLevel(0, playerController, false); countryTile.roundsWithMultiplier = 0; } else { TileController_Wonders countryTile = (TileController_Wonders)tile; countryTile.Owner = null; playerController.photonView.RPC("playerController.walletController.ResetWonder_CMD", Photon.Pun.RpcTarget.All); } } board.ResetBoard(); clicked = true; }