Ejemplo n.º 1
0
    public IEnumerator IEStartSkill(BattleRoleData source, BattleRoleData target)
    {
        source.unit_character_model.CurrentCharacterModel.ChangeModelAnim
            (source.unit_character_model.CurrentCharacterModel.anim_cast, false);
        SLEffectManager.Instance.playCommonEffectCast(source.transform.position);
        yield return(new WaitForSeconds(castLastTime));

        Debug.Log(source.name + " add " + FigureToTarget + " intervence " + target.name);
        //target.ThisBasicRoleProperty().DmgReduction += FigureToTarget;
        //source.ThisBasicRoleProperty().DmgReduction += FigureToSource;
        target.initInterveneState(targetValCaused(source, target), LastTime);
        source.initInterveneState(sourceValCaused(source, target), LastTime, false);

        yield return(new WaitForSeconds(skillLastTime));

        StartCoroutine(IEWaitForEnd(source));
    }