//This is an overlap callback function, triggered by the calls to FlxU.overlap(). protected bool overlapped(FlxObject object1, FlxObject object2) { if ((object1 is EnemyBullet) || (object1 is Bullet)) { object1.kill(); } object2.hurt(1); return(true); }