protected void UpChainCount(G20_DamageType damageType) { if (damageType == G20_DamageType.Player) { G20_ChainCounter.GetInstance().UpChainCount(); } }
//deathactionsが実際に実行されるのは1回のみ public void ExecuteDeathAction(G20_DamageType damageType) { if (isStartDeath) { return; } if (deathActions != null) { deathActions(this, damageType); } isStartDeath = true; }
public void RecvDamage(int damage_value, G20_DamageType damageType) { if (0 >= hp || IsInvincible) { return; } damage_value = Mathf.Clamp(damage_value, 0, hp); scoreCaluclator.CalcAndAddScore(damage_value); hp -= damage_value; if (recvDamageActions != null) { recvDamageActions(this, damageType); } if (0 >= hp) { ExecuteDeathAction(damageType); } }