Пример #1
0
 public Board(Transform[] boardHooks)
 {
     cards = new ArrayList();
     this.boardHooks = boardHooks;
     cardItems = new CardItem[boardHooks.Length];
     //Debug.Log("CardItem count: " + cardItems.Length);
 }
Пример #2
0
 public PokerAction(GameObject actor, string chairName, bool withMoney)
     : base(actor, chairName, withMoney)
 {
     //Debug.Log("Drunkness: " + state.GetDrunkness());
     pokerAI = new PokerAI(this, Mathf.Max(0, 1 - (int)state.GetDrunkness() / DRUNKNESS_LIMIT), Mathf.Max(50, 100-4*(int)state.GetDrunkness()));
     cardHooks = new Transform[2];
     cardHooks[0] = CharacterAnimator.FindChild(actor, "card_hook_1");
     cardHooks[1] = CharacterAnimator.FindChild(actor, "card_hook_2");
     cardItems = new CardItem[cardHooks.Length];
     busy = true;
     currentHandStrength = 0.0;
 }