Esempio n. 1
0
 void ProcessHit()
 {
     _hitPoints -= 1;
     if (_hitPoints <= 0)
     {
         Explode();
     }
     else
     {
         _particleFactory.CreateHitParticles(transform.position, transform);
     }
 }