예제 #1
0
 public override void CollisionResponse(ICollision collided)
 {
     if (collided is MarioCollision)
     {
         Mario  = collided.CurrentEntity as MarioEntity;
         Sprite = new PoleSprite(SpritePosition, true, 5);
         Score(Mario);
     }
 }
예제 #2
0
 public PoleEntity(Vector2 position)
 {
     Sprite          = new PoleSprite(position, false, 1);
     EntityCollision = new PoleCollison(this);
 }