예제 #1
0
 BattleEffect[] GetSkillEffects()
 {
     BattleEffect[]    effs     = new BattleEffect[Node.battleEffects.Length];
     SkillEffectNode[] effNodes = SkillNode.GetSkillEffectNodes(Node.battleEffects);
     for (int i = 0; i < effs.Length; i++)
     {
         effs[i] = GetEffectByType(effNodes[i]);
     }
     return(effs);
 }
예제 #2
0
    /// <summary>
    /// 攻击结束触发,(攻击物体,伤害值)
    /// </summary>

    static BattleEffect[] GetSkillEffects(SkillNode Node)
    {
        BattleEffect[]    effs     = new BattleEffect[Node.battleEffects.Length];
        SkillEffectNode[] effNodes = SkillNode.GetSkillEffectNodes(Node.battleEffects);
        for (int i = 0; i < effs.Length; i++)
        {
            effs[i] = new ChangeValueEffect(effNodes[i]);
        }
        return(effs);
    }