Example #1
0
        protected virtual bool OnCollision(Fixture me, Fixture that, Contact contact)
        {
            var enemy = that.Body.UserData as Enemy;

            if (enemy != null)
            {
                GameWorld.KillEnemy(enemy);
                GameWorld.PopBubble(this);
                return(false);
            }
            return(true);
        }
Example #2
0
 protected virtual void Pop()
 {
     GameWorld.PopBubble(this);
 }