Exemple #1
0
 public void AppearanceInit(int color, int num, eSpecialCard _specialCard)
 {
     myCard.imageCard.raycastTarget = true;
     myCard.InitCard(color, num, _specialCard);
     RestartCard();
     myCard.StartAppearanceCard();
 }
Exemple #2
0
        public void AddCard()
        {
            if (!canReplacement)
            {
                InitCard(activCard.myCard.Info.myColor, activCard.myCard.Info.myNumCard, activCard.myCard.Info.mySpecialCard);
                activCard.CreateNewCard();
            }
            else
            {
                CardData swapCard = new CardData();
                swapCard.myColor       = myCard.Info.myColor;
                swapCard.myNumCard     = myCard.Info.myNumCard;
                swapCard.mySpecialCard = myCard.Info.mySpecialCard;

                myCard.Info.myColor       = activCard.myCard.Info.myColor;
                myCard.Info.myNumCard     = activCard.myCard.Info.myNumCard;
                myCard.Info.mySpecialCard = activCard.myCard.Info.mySpecialCard;
                myCard.InitCard((int)myCard.Info.myColor, myCard.Info.myNumCard, myCard.Info.mySpecialCard);
                myCard.ActivateImageBack(false);

                activCard.InitCard((int)swapCard.myColor, swapCard.myNumCard, swapCard.mySpecialCard);
                activCard.myCard.ActivateImageBack(false);
            }
        }