private void ClaimReward()
        {
            var credits = DailyCredits + _creditsFromWheelCache;

            Display.GetComponent <GraphicRaycaster>().enabled = false;
            CreditsManager.ChangeCredits(CreditsManager.Currency.PremiumCredits, credits);
            RollupCredits(credits, 0, RollUpTime, () =>
            {
                Enable(false);
            });
        }
Exemple #2
0
        private void AddCredits()
        {
            var creditsAsString = creditInputField.text;

            if (string.IsNullOrEmpty(creditsAsString))
            {
                return;
            }
            var credits = int.Parse(creditsAsString);

            Debug.LogWarning("CHEATING! Adding: " + credits + " to credits.");
            CreditsManager.ChangeCredits(CreditsManager.Currency.PremiumCredits, credits);
        }
 private static void ClaimReward()
 {
     CreditsManager.ChangeCredits(CreditsManager.Currency.Credits, RewardCredits);
     CreditsManager.ChangeCredits(CreditsManager.Currency.PremiumCredits, RewardPremiumCredits);
 }