public CardData(CardTypes Type, string Description, Sprite CardSprite, PathCardData PathData) { this.Type = Type; this.Description = Description; this.CardSprite = CardSprite; this.PathData = PathData; }
private void TryPlacePath() { PathCardData pathData = CardSelector.s_Instance.SelectedCard.CardData.PathData; if (TileGrid.s_Instance.PlaceNewCard((int)m_ClickedTilePositions[0].x, (int)m_ClickedTilePositions[0].y, pathData.Up, pathData.Right, pathData.Down, pathData.Left, pathData.Middle)) { CardPositionHolder.s_Instance.DiscardCard(CardSelector.s_Instance.SelectedCard, true); } else { NotificationManager.s_Instance.EnqueueNotification("Cannot place a tile here!", 1.5f); } m_ClickedTilePositions.Clear(); }