當前位置: 首頁>>代碼示例>>C#>>正文


C# Character.getIsDead方法代碼示例

本文整理匯總了C#中Character.getIsDead方法的典型用法代碼示例。如果您正苦於以下問題:C# Character.getIsDead方法的具體用法?C# Character.getIsDead怎麽用?C# Character.getIsDead使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Character的用法示例。


在下文中一共展示了Character.getIsDead方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: Attack

 private void Attack(Character caller,Character target)
 {
     if(caller.getIsDead()) return;
     if(!target.getIsDead()){
         createBullets();
         createGunFire();
     }
 }
開發者ID:rogeryuan99,項目名稱:Hello,代碼行數:8,代碼來源:Skill_NEBULA30A.cs

示例2: Attack

    private void Attack(Character call, Character target)
    {
        if(call.getIsDead())
        {
            return;
        }

        if (false == target.getIsDead()){
            //MusicManager.playEffectMusic("SFX_enemy_range_attack_1a");
            createBullets();
            createGunFire();
        }
    }
開發者ID:rogeryuan99,項目名稱:Hello,代碼行數:13,代碼來源:Skill_KORATH1.cs

示例3: Skill_DRAX5BEffect

    public void Skill_DRAX5BEffect(Drax drax, Character target)
    {
        if(target.getIsDead())
        {
            return;
        }
        drax.attackAnimaEvent -= Skill_DRAX5BEffect;

        Debug.LogError("Skill_DRAX5BEffect");

        SkillDef skillDef = SkillLib.instance.getSkillDefBySkillID("DRAX5B");

        Hashtable tempNumber = skillDef.activeEffectTable;
        int time = skillDef.buffDurationTime;
        float per = ((Effect)skillDef.buffEffectTable["hp"]).num;
        int hp = (int)((per / 100.0f + 1.0f) * drax.realMaxHp);
        target.addBuff("Skill_DRAX5B", time, (float)hp/(float)time, BuffTypes.DE_HP);

        DestroyBuffEft(drax, "Skill_DRAX5B");
    }
開發者ID:rogeryuan99,項目名稱:Hello,代碼行數:20,代碼來源:Skill_DRAX5B.cs

示例4: buffFinish

 private void buffFinish(Character character, Buff self)
 {
     if(!character.getIsDead()){
         character.model.renderer.material.color = new Color(1f, 1f, 1f, 1f);
         character.isSkunge30Buff = false;
     }
 }
開發者ID:rogeryuan99,項目名稱:Hello,代碼行數:7,代碼來源:Skunge.cs

示例5: buffFinish

 private void buffFinish(Character character, Buff self)
 {
     if(!character.getIsDead()){
         character.attackAnimaName = "Attack";
     }
 }
開發者ID:rogeryuan99,項目名稱:Hello,代碼行數:6,代碼來源:Skill_SKUNGE30A.cs


注:本文中的Character.getIsDead方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。