public override string ToString() { StringBuilder __sb = new StringBuilder("TDDIElementUnion("); bool __first = true; if (LangString != null && __isset.LangString) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("LangString: "); __sb.Append(LangString == null ? "<null>" : LangString.ToString()); } if (MultiLangString != null && __isset.MultiLangString) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("MultiLangString: "); __sb.Append(MultiLangString == null ? "<null>" : MultiLangString.ToString()); } if (SACMElement != null && __isset.SACMElement) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("SACMElement: "); __sb.Append(SACMElement == null ? "<null>" : SACMElement.ToString()); } __sb.Append(")"); return(__sb.ToString()); }
public void Init(HangUpRewardFormat data) { StringBuilder _finalStr = new StringBuilder(); if (data.GotEXP > 0) { var _id = HangUpStringFormatTableReader.Instance.FindID(ConstCollections.PJEnums.HangUp.STRINGS_LABEL.GET_EXP_TEXT); var _str = new MultiLangString <HangUpStringFormatTable> (_id, HangUpStringFormatTableReader.Instance, data.GotEXP); _finalStr.Append(_str.ToString()); } if (data.GotAura > 0) { _finalStr.AppendLine(); var _id = HangUpStringFormatTableReader.Instance.FindID(ConstCollections.PJEnums.HangUp.STRINGS_LABEL.GET_AURA_TEXT); var _str = new MultiLangString <HangUpStringFormatTable> (_id, HangUpStringFormatTableReader.Instance, data.GotAura); _finalStr.Append(_str.ToString()); } if (data.GotDimensionChip > 0) { _finalStr.AppendLine(); var _id = HangUpStringFormatTableReader.Instance.FindID(ConstCollections.PJEnums.HangUp.STRINGS_LABEL.GET_DIMENSION_CHIP_TEXT); var _str = new MultiLangString <HangUpStringFormatTable> (_id, HangUpStringFormatTableReader.Instance, data.GotDimensionChip); _finalStr.Append(_str.ToString()); } if (this.textScript == null) { this.textScript = GetComponent <Text> (); } this.textScript.text = _finalStr.ToString(); }