当前位置: 首页>>代码示例>>C#>>正文


C# Character.defenseAtk方法代码示例

本文整理汇总了C#中Character.defenseAtk方法的典型用法代码示例。如果您正苦于以下问题:C# Character.defenseAtk方法的具体用法?C# Character.defenseAtk怎么用?C# Character.defenseAtk使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Character的用法示例。


在下文中一共展示了Character.defenseAtk方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: OnAtkAnimaScriptTarget

    public override void OnAtkAnimaScriptTarget(Character targetCharacter)
    {
        int dmg;

        dmg = targetCharacter.defenseAtk(this.hero.realAtk, this.hero.gameObject);

        this.hero.trinketEfts(dmg);
    }
开发者ID:rogeryuan99,项目名称:Hello,代码行数:8,代码来源:HeroAI.cs

示例2: attack

    public void attack(Character character, Character target)
    {
        SkillDef skillDef = SkillLib.instance.getSkillDefBySkillID("BUG15B");
        int skillDurationTime = skillDef.skillDurationTime;

        if(!target.isAbnormalStateActive(Character.ABNORMAL_NUM.LAYDOWN))
        {
            target.addAbnormalState(skillDurationTime, null, Character.ABNORMAL_NUM.LAYDOWN);
        }

        target.defenseAtk(character.realAtk, character.gameObject);
    }
开发者ID:rogeryuan99,项目名称:Hello,代码行数:12,代码来源:Skill_BUG15B.cs

示例3: Skill_DRAX30AEffect

    public void Skill_DRAX30AEffect(Drax drax, Character target)
    {
        MusicManager.playEffectMusic("SFX_Drax_The_Destroyer_1a");
        SkillDef skillDef = SkillLib.instance.getSkillDefBySkillID("DRAX30A");
        int skillDurationTime = skillDef.skillDurationTime;
        int buffDurationTime = skillDef.buffDurationTime;
        Hashtable buffTable = skillDef.buffEffectTable;

        float per = ((Effect)buffTable["hp"]).num;
        int hp = (int)(target.realMaxHp * (per / 100.0f));

        if(StaticData.computeChance(50, 100))
        {
            target.addBuff("Skill_DRAX30A_DE_HP", buffDurationTime, hp / buffDurationTime, BuffTypes.DE_HP);
        //			target.layDownWithSeconds();

            State s = new State(skillDurationTime, null);
            target.addAbnormalState(s, Character.ABNORMAL_NUM.LAYDOWN);
        }

        target.defenseAtk(drax.realAtk, drax.gameObject);
    }
开发者ID:rogeryuan99,项目名称:Hello,代码行数:22,代码来源:Skill_DRAX30A.cs

示例4: OnAtkAnimaScriptTarget

 public override void OnAtkAnimaScriptTarget(Character targetCharacter)
 {
     this.enemy.playAtkEft();
     targetCharacter.defenseAtk(this.enemy.realAtk, this.enemy.gameObject);
 }
开发者ID:rogeryuan99,项目名称:Hello,代码行数:5,代码来源:EnemyAI.cs


注:本文中的Character.defenseAtk方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。