public override void BulletCollision(Bullet b) { if (_type == TileType.WALL) { b.SetToRemove(); } }
public override void BulletCollision(Bullet b) { b.SetToRemove(); _health -= b.GetDamage(); if (_health < 1) { _state = State.DEAD; } if (_state == State.SEEKING_ENEMY) { _state = State.PURSUING_ENEMY; } _enLastSeen = _enemy.GetPos(); _enLastHeading = _enemy.GetCurrentVelocity(); }
public virtual void BulletCollision(Bullet b) { b.SetToRemove(); }