Exemple #1
0
 private void Awake()
 {
     animator     = GetComponent <Animator>();
     skillSlot[0] = new MeleeAttackSkill();
     skillSlot[1] = new SpeedUpBuffSkill();
     skillSlot[2] = new OverWhelmBuffSkill();
 }
Exemple #2
0
        public void SetSkillSlot(SkillType skillType, int slotNum)
        {
            switch (skillType)
            {
            case SkillType.Melee:
                SkillList[slotNum] = new MeleeAttackSkill();
                break;

            case SkillType.Range:
                SkillList[slotNum] = new RangeAttackSkill();
                break;

            case SkillType.SpeedUpBuff:
                SkillList[slotNum] = new SpeedUpBuffSkill();
                break;

            case SkillType.OverWhelmBuff:
                SkillList[slotNum] = new OverWhelmBuffSkill();
                break;
            }
        }