public IEnumerator GoToJailCoroutine() //send to jail, RIGHT THROUGH BOARD, DO NOT PASS OTHER TILES { Vector3 finalPosition = TileManager.GetTile(10).GetTilePosition(); while (currentPosition != finalPosition) { currentPosition = Vector3.MoveTowards(currentPosition, finalPosition, 20f); { UpdatePosition(); yield return(null); } } currentWaypoint = 10; inJail = true; PlayerInformationManager.UpdatePlayerInfo(); GameLoop.EndTurn(); }
public override void DoCardAction() { GameLoop.GetCurrentPlayer().ChangeGetOutOfJailCard(true); PlayerInformationManager.UpdatePlayerInfo(); }
public virtual void Buy() { GameLoop.GetCurrentPlayer().Charge(PurchasePrice); Owner = GameLoop.GetCurrentPlayer(); PlayerInformationManager.UpdatePlayerInfo(); }
public void Pay(int income) { money = money + income; PlayerInformationManager.UpdatePlayerInfo(); }
public void GetOutOfJail() { inJail = false; PlayerInformationManager.UpdatePlayerInfo(); }