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; } }
void Start() { UpdateCoins(); //for getting coins in to the gameplay Static = this; }
// ------------------------------- void Start() { //PlayerPrefs.SetInt("TotalCoins", 150000); UpdateCoins(); Static = this; }