Example #1
0
 /// <summary>
 /// Makes player sick. Possible arguments are "bleeding", "
 /// </summary>
 /// <param name="SickType"></param>
 public void SetSick(SickTypes SickType, int turns)
 {
     if (SickType == SickTypes.Swollen)
     {
         SwollenTurns = turns;
         if (PlaysLeft > 0)
         {
             AddPlays(-1);
         }
         playButton.SetSprite();
     }
     else if (SickType == SickTypes.Hunger)
     {
         HungerTurns = turns;
         deckObj.GetComponent <DeckAnimate>().SetSprite();
     }
     else //bleeding
     {
         BleedingTurns = turns;
         if (MovesLeft > 0)
         {
             AddMoves(-1);
         }
         moveButton.SetSprite();
     }
 }
Example #2
0
 /// <summary>
 /// Makes player sick. Possible arguments are "bleeding", "
 /// </summary>
 /// <param name="SickType"></param>
 public void SetSick(SickTypes SickType, int turns)
 {
     if (SickType == SickTypes.Swollen)
     {
         SwollenTurns = turns;
         if (PlaysLeft > 0) AddPlays(-1);
         playButton.SetSprite();
     }
     else if (SickType == SickTypes.Hunger)
     {
         HungerTurns = turns;
         deckObj.GetComponent<DeckAnimate>().SetSprite();
     }
     else //bleeding
     {
         BleedingTurns = turns;
         if (MovesLeft > 0) AddMoves(-1);
         moveButton.SetSprite();
     }
 }