コード例 #1
0
        public void DecreaseCurrency(BigIntWithUnit amount)
        {
            Data.DecreaseCurrency(amount);

            AchievementManager.RegisterEvent(AchievementType.Spend, amount);

            var currencyTextPos = new Vector3(-9f, 0f, 19f);

            UIManager.CreateFloatingText("-" + amount.ToString(), UIManager.CurrText.transform, UIManager.CurrText.transform.position + currencyTextPos, true);
        }
コード例 #2
0
        public void IncreaseCurrency(BigIntWithUnit amount, Vector3 objpos)
        {
            if (amount == 0)
            {
                return;
            }

            amount *= _currencyModifier;
            Data.IncreaseCurrency(amount);

            AchievementManager.RegisterEvent(AchievementType.Earn, amount);
            var currencyTextPos = new Vector3(0f, 12f, 0f);

            UIManager.CreateFloatingText(amount.ToString(), UIManager.CurrText.transform, objpos + currencyTextPos, false);
        }