void Purchase() { if (SoundManager.GetInstance()) { SoundManager.GetInstance().PlaySFX(sfxPurchase); } isPurchased = true; if (prizeMoney > 0) { levelManager.ConsumeMoney(prizeMoney); } if (prizeWood > 0) { levelManager.ConsumeWood(prizeWood); } levelManager.Upgrade(type); animator.Play("UpgradeButtonClick"); DisablePointer(); upgradeMenu.EnableAvailableButtonPointer(); switch (type) { case 0: case 2: levelManager.ShowExplainMenu(3); break; case 1: case 3: levelManager.ShowExplainMenu(4); break; case 6: levelManager.ShowExplainMenu(5); break; case 7: levelManager.ShowExplainMenu(6); break; } }