Esempio n. 1
0
 private void BeHit(float damage)
 {
     PlayHurt();
     Knockback();
     BeHitSlowDown();
     Unibus.Dispatch(EventVirus.Get(EventVirus.Action.BE_HIT, this, damage));
 }
Esempio n. 2
0
 private void BeDead()
 {
     isAlive = false;
     Unibus.Dispatch(EventVirus.Get(EventVirus.Action.DEAD, this, hpTotal));
     Recycle();
     PlayDead();
     Divide();
     GenBuff();
 }