示例#1
0
 protected void UpChainCount(G20_DamageType damageType)
 {
     if (damageType == G20_DamageType.Player)
     {
         G20_ChainCounter.GetInstance().UpChainCount();
     }
 }
示例#2
0
 //deathactionsが実際に実行されるのは1回のみ
 public void ExecuteDeathAction(G20_DamageType damageType)
 {
     if (isStartDeath)
     {
         return;
     }
     if (deathActions != null)
     {
         deathActions(this, damageType);
     }
     isStartDeath = true;
 }
示例#3
0
 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);
     }
 }