示例#1
0
    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();
    }
示例#2
0
 public override void DoCardAction()
 {
     GameLoop.GetCurrentPlayer().ChangeGetOutOfJailCard(true);
     PlayerInformationManager.UpdatePlayerInfo();
 }
 public virtual void Buy()
 {
     GameLoop.GetCurrentPlayer().Charge(PurchasePrice);
     Owner = GameLoop.GetCurrentPlayer();
     PlayerInformationManager.UpdatePlayerInfo();
 }
示例#4
0
 public void Pay(int income)
 {
     money = money + income;
     PlayerInformationManager.UpdatePlayerInfo();
 }
示例#5
0
 public void GetOutOfJail()
 {
     inJail = false;
     PlayerInformationManager.UpdatePlayerInfo();
 }