Example #1
0
        protected override void OnEnter(StateNode prev)
        {
            TurnSelector.INSTANCE.Text = "<color=red>A.\"I.\" Turn</color>";

            this.hand = this.GetComponent <CardHand>();
            Debug.Log(this.hand);

            this.StartCoroutine(this.PickPattern());
        }
Example #2
0
        protected override void OnEnter(StateNode prev)
        {
            TurnSelector.INSTANCE.Text = "Dealing cards...";

            this.dealer.enabled = true;

            this.dealer.StartDealing(() => {
                this.next.Enter(this);                 // Just move on to the next state asap.
            });
        }
Example #3
0
 public void Enter(StateNode prev)
 {
     if (!this.enabled)
     {
         prev.OnExit(this);
         prev.enabled = false;
         this.enabled = true;
         this.OnEnter(prev);
     }
 }
Example #4
0
        protected override void OnEnter(StateNode prev)
        {
            TurnSelector.INSTANCE.Text = "<color=blue>Your Turn</color>";

            this.hand = this.GetComponent <CardHand>();
            Debug.Log(this.hand);

            this.hand.cardClickCallback = (CardController cc) => {
                Debug.Log("Click called back to " + cc + "!");
                this.hand.cardClickCallback = null;

                this.picked = cc;
                this.StartCoroutine(this.DrawPattern());
            };
        }
Example #5
0
 protected virtual void OnExit(StateNode next)
 {
 }
Example #6
0
 protected virtual void OnEnter(StateNode prev)
 {
 }