public void OpenUnitUI() { armyManTran.gameObject.SetActive(true); combatDeckTran.gameObject.SetActive(true); instituteManTran.gameObject.SetActive(false); skillDeckTran.gameObject.SetActive(false); currentClickArmyItem = null; currentClickSkillItem = null; RefreshArmyItem(); }
private void OpenInstituteUI() { armyManTran.gameObject.SetActive(false); combatDeckTran.gameObject.SetActive(false); instituteManTran.gameObject.SetActive(true); skillDeckTran.gameObject.SetActive(true); currentClickArmyItem = null; currentClickSkillItem = null; SetClickSkillProp(); SetSkillDeck(); RefreshInstituteItem(); }
private void OnInstituteSkillCallBack(InstituteSkillCardItem item) { currentClickSkillItem = null; foreach (InstituteSkillCardItem ite in instituteSkill_Items) { ite.glowImage.gameObject.SetActive(false); } item.glowImage.gameObject.SetActive(true); currentClickSkillItem = item; SetClickSkillProp(); if (item.isEquip || item.isLock) { currentClickSkillItem = null; } }
private void OnSkillDeckItemClickCallBack(SkillDeckCardItem item) { if (currentClickSkillItem == null) { return; } foreach (InstituteSkillCardItem ite in instituteSkill_Items) { ite.glowImage.gameObject.SetActive(false); } controller.SaveJoinSkillDeckList(item.index, currentClickSkillItem.id); currentClickSkillItem = null; SetClickSkillProp(); SetSkillDeckProp(); }