コード例 #1
0
 public override void BulletCollision(Bullet b)
 {
     if (_type == TileType.WALL)
     {
         b.SetToRemove();
     }
 }
コード例 #2
0
 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();
 }
コード例 #3
0
 public virtual void BulletCollision(Bullet b)
 {
     b.SetToRemove();
 }