void SkillBuyPopUpCreate(int index) { TempStaticMemory.GamePause(); AllPopupDisable(); Debug.Log(index + " index Test"); ready_unlock_skillIndex = index; switch (ready_unlock_skillIndex) { case 1: DarkSkillPopup.SetActive(true); break; case 2: DeathSkillPopup.SetActive(true); break; case 3: LegendSkillPopup.SetActive(true); break; } UIEventListener.Get(buyButton).onClick += new UIEventListener.VoidDelegate(UnLockButtonProcess); }
void AllPopupDisable() { DarkSkillPopup.SetActive(false); DeathSkillPopup.SetActive(false); LegendSkillPopup.SetActive(false); }