Ejemplo n.º 1
0
        protected override void OnNewTurnTriggered()
        {
            if (Caller.Turn)
            {
                activeCard = this;

                UICard.OverrideActiveHover = true;

                ApplyingEffects = true;

                Caller.IntChoices["SignatureMoveDraw"] = -1;

                StartCoroutine(DrawSignatureMove());

                if (Caller.IsLocalPlayer)
                {
                    UI.ShowBooleanChoiceUI("Draw a signature move", "Regular draw from deck", (b) => {
                        if (b)
                        {
                            Caller.SetIntChoiceServerRpc("SignatureMoveDraw", 0);
                        }
                        else
                        {
                            Caller.FinishedApplyingEffectsServerRpc();
                        }
                    });
                }
                else if (Caller.AI)
                {
                    Caller.IntChoices["SignatureMoveDraw"] = 0;
                }
            }
        }