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