public void ActivatePanel(HexagonalCell _cell) { currentCell = _cell; panel.SetActive(true); eCards color = currentCell.GetCard().Info.myColor; bubna.SetActive(true); chirwa.SetActive(true); cross.SetActive(true); pika.SetActive(true); if (color == eCards.Bubna) { bubna.SetActive(false); } if (color == eCards.Chirwa) { chirwa.SetActive(false); } if (color == eCards.Cross) { cross.SetActive(false); } if (color == eCards.Pika) { pika.SetActive(false); } }
public void SetReserveCard(eCards _color, int _num, eSpecialCard _special) { reserveCard = new CardData(); reserveCard.myColor = _color; reserveCard.myNumCard = _num; reserveCard.mySpecialCard = _special; }
public void InitInfoCard(int _color, int _num, eSpecialCard _specialCard) { eCards _Mycolor = (eCards)_color; Info.myColor = _Mycolor; Info.myNumCard = _num; Info.mySpecialCard = _specialCard; }
private void InitCard(eCards _color, int _num, eSpecialCard _spec) { canReplacement = true; canSwap = true; myCard.Info.myColor = _color; myCard.Info.myNumCard = _num; myCard.Info.mySpecialCard = _spec; myCard.InitCard((int)myCard.Info.myColor, myCard.Info.myNumCard, myCard.Info.mySpecialCard); myCard.ActivateImageBack(false); activCard.myCard.ActivateImageBack(false); }