Exemplo n.º 1
0
    public override void ExcuteAction(TriggerInfo triggerInfo, TriggerEffectInfo effectInfo)
    {
        //Debug.Log("TriggerGroupId = "+ triggerInfo.triggerGroup.Id + "TriggerEffectLogic_Action");
        if (effectInfo.paramList == null || effectInfo.paramList[0] == null)
        {
            return;
        }
        CharacterInfo charInfo = triggerInfo.charInfo;

        charInfo.DoAction(effectInfo.paramList[0]);
    }
Exemplo n.º 2
0
    public override void ExcuteAction(TriggerInfo triggerInfo, TriggerEffectInfo effectInfo)
    {
        CharacterInfo charInfo = triggerInfo.charInfo;

        //Debug.Log("TriggerGroupId = "+ triggerInfo.triggerGroup.Id + "TriggerEffectLogic_Action");
        if (effectInfo.paramList == null || effectInfo.paramList[0] == null)
        {
            return;
        }
        string actionName = effectInfo.paramList[0];
        float  actionTime = charInfo.GetFinalAttr(CharAttr.AttackTime);

        charInfo.DoAction(effectInfo.paramList[0], actionTime);
    }