/*****************************************************************************************/
 protected override void MoveToOriginalzone(CardComponent card)
 {
     card.CurrentZone.ZoneBehaviour = realZone[card.CurrentZone];
     if (CardPlayed != null && CardPlayed != card)
     {
         card.MoveFast(AllComponents.CardBuilder.Zone);
     }
     else
     {
         card.MoveFast(card.CurrentZone);
     }
     AllComponents.Table.CenterPreview.ListCards.Remove(card);
 }
Beispiel #2
0
 protected virtual void MoveToOriginalzone(CardComponent card)
 {
     card.CurrentZone.ZoneBehaviour = realZone[card.CurrentZone];
     card.MoveFast(card.CurrentZone, indexPosition: card.Position);
     card.Position = null;
     AllComponents.Table.CenterPreview.RemoveCard(card);
 }
Beispiel #3
0
 protected override void MoveToOriginalzone(CardComponent card)
 {
     card.CurrentZone.ZoneBehaviour = realZone[card.CurrentZone];
     if (CardPlayed == card && ChosenCardEffects.Find(c => c.Card == card).IsWithAnimation)
     {
         card.IsInCenterPreview = true;
     }
     else
     {
         card.MoveFast(card.CurrentZone, indexPosition: card.Position);
         card.Position = null;
     }
     AllComponents.Table.CenterPreview.ListCards.Remove(card);
 }
Beispiel #4
0
        /*****************************************************************************************/
        protected override IEnumerator ActionLogic()
        {
            if (thisCard.IsEliminated)
            {
                yield break;
            }
            DOTween.Kill(thisCard.UniqueId + "ExitCard"); //Probar WaitWhile(Dotween.IsTweenen(thisCard.transform))
            yield return(new SelectInvestigatorAction(thisCard.VisualOwner).RunNow());

            if (isBuffEvent)
            {
                yield return(BuffEventStartAnimation());
            }
            yield return(thisCard.TurnDown(isBack ?? thisCard.IsBack));

            if (thisCard.MyOwnZone?.ListCards.Count > 0)
            {
                thisCard.CardTools.ShowCardsInMyOwnZone(false);
            }
            yield return(thisCard.Preview(timePause: GameData.ANIMATION_TIME_DEFAULT));

            if (audioClip != null)
            {
                yield return(new WaitForSeconds(GameData.ANIMATION_TIME_DEFAULT * 2));

                thisCard.CardTools.PlayOneShotSound(audioClip);
            }
            yield return(new WaitWhile(() => DOTween.IsTweening("Preview") || thisCard.CardTools.AudioSource.isPlaying));

            thisCard.CardTools.ShowCardsInMyOwnZone(true);
            if (withReturn)
            {
                yield return(thisCard.MoveFast(thisCard.CurrentZone, indexPosition: thisCard.Position));
            }
            yield return(new WaitWhile(() => DOTween.IsTweening("MoveFast")));

            if (isBuffEvent)
            {
                yield return(BuffEventEndAnimation());
            }
        }
Beispiel #5
0
 protected virtual void MoveToCenter(CardComponent card)
 {
     card.CurrentZone.ZoneBehaviour = AllComponents.Table.CenterPreview.ZoneBehaviour;
     card.MoveFast(card.CurrentZone);
     AllComponents.Table.CenterPreview.AddCard(card);
 }
 protected override void MoveToOriginalzone(CardComponent card)
 {
     card.MoveFast(deckZone);
     AllComponents.Table.CenterPreview.ListCards.Remove(card);
 }
 protected override void MoveToCenter(CardComponent card)
 {
     card.MoveFast(AllComponents.Table.CenterPreview);
     AllComponents.Table.CenterPreview.ListCards.Add(card);
 }