|
|
using System.Collections.Generic;
|
|
public static class SkillEffectFactory
|
{
|
public static SkillEffect CreateSkillEffect(BattleObject caster, SkillConfig skillConfig, HB427_tagSCUseSkill tagUseSkillAttack)
|
{
|
switch (skillConfig.effectType)
|
{
|
case SkillEffectType.Bullet:
|
return new BulletSkillEffect(skillConfig, caster, tagUseSkillAttack);
|
case SkillEffectType.Direct:
|
return new NormalSkillEffect(skillConfig, caster, tagUseSkillAttack);
|
// case SkillEffectType.BuffEffect:
|
// return new BuffSkillEffect(skillConfig, caster, targets);
|
// case SkillEffectType.StageEffect:
|
// return new StageSkillEffect(skillConfig, caster, targets);
|
default:
|
BattleDebug.LogError("Unknown Skill Effect Type");
|
break;
|
}
|
return null;
|
}
|
}
|