private void SetMainSkill(int skillId) { BattleSkillBtn skill = ResourceMgr.PopSkill(skillId); skill.IsMainSkill = true; skill.m_Transform.SetParent(SkillBarTran); skill.SetToLargerScale(); skill.SetPosImmediately(-4.7f); }
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(); }