本文整理匯總了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";
}
}