示例#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());
        }
示例#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.
            });
        }
示例#3
0
 public void Enter(StateNode prev)
 {
     if (!this.enabled)
     {
         prev.OnExit(this);
         prev.enabled = false;
         this.enabled = true;
         this.OnEnter(prev);
     }
 }
示例#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());
            };
        }
示例#5
0
 protected virtual void OnExit(StateNode next)
 {
 }
示例#6
0
 protected virtual void OnEnter(StateNode prev)
 {
 }