예제 #1
0
        private void SetMainSkill(int skillId)
        {
            BattleSkillBtn skill = ResourceMgr.PopSkill(skillId);

            skill.IsMainSkill = true;
            skill.m_Transform.SetParent(SkillBarTran);
            skill.SetToLargerScale();
            skill.SetPosImmediately(-4.7f);
        }
예제 #2
0
        public void EnqueueSkill(int skillType)
        {
            if (_queSkill.Count > 4)
            {
                DequeueSkill();
            }

            BattleSkillBtn skill = ResourceMgr.PopSkill(skillType);

            skill.m_Transform.SetParent(SkillBarTran);
            skill.SetToOriScale();
            _queSkill.Enqueue(skill);
            ResetSkillBar();
        }