コード例 #1
0
        public void OpenUnitUI()
        {
            armyManTran.gameObject.SetActive(true);
            combatDeckTran.gameObject.SetActive(true);
            instituteManTran.gameObject.SetActive(false);
            skillDeckTran.gameObject.SetActive(false);

            currentClickArmyItem  = null;
            currentClickSkillItem = null;

            RefreshArmyItem();
        }
コード例 #2
0
        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();
        }
コード例 #3
0
        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;
            }
        }
コード例 #4
0
        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();
        }