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