// Token: 0x06000E3F RID: 3647 RVA: 0x00046090 File Offset: 0x00044290 private void FixedUpdate() { if (this.targetTextMesh) { switch (this.costType) { case CostType.Money: this.targetTextMesh.text = string.Format("${0}", this.displayValue); this.targetTextMesh.color = ColorCatalog.GetColor(ColorCatalog.ColorIndex.Money); return; case CostType.PercentHealth: this.targetTextMesh.text = string.Format("{0}% HP", this.displayValue); this.targetTextMesh.color = ColorCatalog.GetColor(ColorCatalog.ColorIndex.Teleporter); return; case CostType.Lunar: this.targetTextMesh.text = string.Format("{0} Lunar", this.displayValue); this.targetTextMesh.color = ColorCatalog.GetColor(ColorCatalog.ColorIndex.LunarCoin); return; case CostType.WhiteItem: this.targetTextMesh.text = string.Format("{0} Items", this.displayValue); this.targetTextMesh.color = ColorCatalog.GetColor(PurchaseInteraction.CostTypeToColorIndex(this.costType)); return; case CostType.GreenItem: this.targetTextMesh.text = string.Format("{0} Items", this.displayValue); this.targetTextMesh.color = ColorCatalog.GetColor(PurchaseInteraction.CostTypeToColorIndex(this.costType)); return; case CostType.RedItem: this.targetTextMesh.text = string.Format("{0} Items", this.displayValue); this.targetTextMesh.color = ColorCatalog.GetColor(PurchaseInteraction.CostTypeToColorIndex(this.costType)); return; default: this.targetTextMesh.text = string.Format("${0}", this.displayValue); this.targetTextMesh.color = ColorCatalog.GetColor(ColorCatalog.ColorIndex.Error); break; } } }
// Token: 0x06001386 RID: 4998 RVA: 0x0005F488 File Offset: 0x0005D688 private string GetCostString() { switch (this.costType) { case CostType.None: return(""); case CostType.Money: return(string.Format(" (<nobr><style=cShrine>${0}</style></nobr>)", this.cost)); case CostType.PercentHealth: return(string.Format(" (<nobr><style=cDeath>{0}% HP</style></nobr>)", this.cost)); case CostType.Lunar: return(string.Format(" (<nobr><color=#{1}>{0}</color></nobr>)", this.cost, ColorCatalog.GetColorHexString(ColorCatalog.ColorIndex.LunarCoin))); case CostType.WhiteItem: return(string.Format(" <nobr>(<nobr><color=#{1}>{0} Items</color></nobr>)", this.cost, ColorCatalog.GetColorHexString(PurchaseInteraction.CostTypeToColorIndex(this.costType)))); case CostType.GreenItem: return(string.Format(" <nobr>(<nobr><color=#{1}>{0} Items</color></nobr>)", this.cost, ColorCatalog.GetColorHexString(PurchaseInteraction.CostTypeToColorIndex(this.costType)))); case CostType.RedItem: return(string.Format(" <nobr>(<nobr><color=#{1}>{0} Items</color></nobr>)", this.cost, ColorCatalog.GetColorHexString(PurchaseInteraction.CostTypeToColorIndex(this.costType)))); default: return(""); } }