private void UpdateBuyText() { (ulong cost, int amount) = data.GetActualBulkPrice(producer.NumberOwned); buyTextNumber.text = $"{amount}"; buyText.text = $"\n {SuffixHelper.GetString(cost, false)} Tokens "; if (buyButtonAnim != null) { UpdateBuyAnim(cost); } }
private void UpdateText() { if (Data.ProducedAmount == 0) { Destroy(this.gameObject); return; } textUI.text = $"Tokens produced while gone: \n"; textUI.text += SuffixHelper.GetString(Data.ProducedAmount, false); textUI.enabled = true; Destroy(this.gameObject, destroyTime); }
private void Update() { var tokenString = SuffixHelper.GetString(resource.CurrentAmount, true); string[] words = tokenString.Split(new string[] { "\n" }, StringSplitOptions.None); resourceText.text = words[0]; if (words.Length < 2) { resourceSuffixText.text = ""; return; } resourceSuffixText.text = words[1]; }
private void UpdateBuyText() { buyText.text = $"{SuffixHelper.GetString(data.GetActualPrice(Castle.NumberOwned), false)}"; }