string GetMainText() { CardMainData data = selectCard.cardData; //normal card string main = data.Text.Replace("<br>", "\n"); //transformable card string sub = data.SubText; //reader card string ex = data.PopularityExplosion.Replace("<br>", "\n"); string bonus = data.PopularityBonus.Replace("<br>", "\n"); string normal = data.Normal.Replace("<br>", "\n"); string bad = data.UnpopularityPenalty.Replace("<br>", "\n"); string result = ""; result += main; result += sub == "" ? "" : "\n(変身時)\n" + sub; if (ex != "") { result += "\n[人気4]\n" + ex; result += "\n[人気2]\n" + bonus; result += "\n[人気1]\n" + normal; result += "\n[人気0]\n" + bad; } return(result); }
public static CardMainData GetCardData(Card.IDType type, uint num) { CardMainData cardData = new CardMainData(); cardData.Compile(csvDatas[(int)type][GetIndex(type, num)]); return(cardData); }
private void Start() { cardData = CardDataBase.GetCardData(iDtype, number); var text = GetComponentInChildren <TMPro.TextMeshPro>(); text.text = IDName[iDtype] + "." + number; if (OnCardClick == null) { OnCardClick = new UEventCard(); } }