public void OpenPanel() { int tempHero = CharectorStats.getTempHero(); if (CharectorStats.HeroIsMaxLvl(tempHero)) { chosenPanel = Panels[1]; //1 is tier up panel } else { chosenPanel = Panels[0]; //0 is melt panel } if (chosenPanel != null) { chosenPanel.gameObject.SetActive(true); } }
private void OnEnable() { isMaxedActually = false; int[] temp = CharectorStats.setTempHero(CharectorStats.getTempHero()); if (CharectorStats.HeroIsMaxLvl(CharectorStats.getTempHero())) { isMaxedActually = true; } MeltPrestButtonDisplay(); xpslide.tempMax += tempMaxHit; xpslide.tempMaxReduced += tempMaxReduced; if (!isMaxedActually) { xpslide.CloneHero(); xpslide.UpdateSlider(0); xpslide.SetCurrentAndBoundText(); } xpToBeAdded = 0; InitializeMeltGrid(); xpslide.SetHeroNameText(); //need to remove selectedButtons if refreshing panel ClearSelectedGameObjs(); }