本文整理汇总了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();
}
}
示例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();
}
}
示例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");
}
示例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;
}
}
示例5: buffFinish
private void buffFinish(Character character, Buff self)
{
if(!character.getIsDead()){
character.attackAnimaName = "Attack";
}
}