예제 #1
0
func (p *Physics) DamageShieldGenerator(b *state.Bullet, s *state.ShieldGenerator) bool {
	s.CurrentHealth -= p.BulletDamage
	b.ShouldRemove = true
	if s.CurrentHealth <= 0 {
		s.Shield.IsEnabled = false
		s.CurrentHealth = 0
		return true
	}
	return false

}