Exemple #1
0
 public override void SetDamage(float damage, string name)
 {
     hp -= damage;
     if (hp > 0)
     {
     }
     else
     {
         bahaha.Scores(name);
         bahaha.StartCor();
         Destroy(gameObject);
     }
 }
Exemple #2
0
 public override void SetDamage(float damage, string name)
 {
     hp -= damage;
     if (hp > 0)
     {
     }
     else if (scoreSend)
     {
         scoreSend = false;
         mb.Scores(name);
         mb.StartCor();
         Destroy(gameObject);
     }
 }