Esempio n. 1
0
 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);
     }
 }
Esempio n. 2
0
 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);
 }
Esempio n. 3
0
        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];
        }
Esempio n. 4
0
 private void UpdateBuyText()
 {
     buyText.text = $"{SuffixHelper.GetString(data.GetActualPrice(Castle.NumberOwned), false)}";
 }