void ReleaseDesignerOutlets()
        {
            if (TotalCoins != null)
            {
                TotalCoins.Dispose();
                TotalCoins = null;
            }

            if (AmountToConsume != null)
            {
                AmountToConsume.Dispose();
                AmountToConsume = null;
            }

            if (ConsumeButton != null)
            {
                ConsumeButton.Dispose();
                ConsumeButton = null;
            }

            if (SpecialView != null)
            {
                SpecialView.Dispose();
                SpecialView = null;
            }

            if (ViewTouched != null)
            {
                ViewTouched.Dispose();
                ViewTouched = null;
            }
        }
Example #2
0
 void Start()
 {
     UpdateCoins();                         //for getting coins in to the gameplay
     Static = this;
 }
Example #3
0
    // -------------------------------

    void Start()
    {
        //PlayerPrefs.SetInt("TotalCoins", 150000);
        UpdateCoins();
        Static = this;
    }