/// <summary> /// Change the emitter's midpoint to match the midpoint of a <code>FlxObject</code>. /// </summary> /// <param name="flxObject">The <code>FlxObject</code> that you want to sync up with.</param> public void at(FlxObject flxObject) { flxObject.getMidpoint(_point); X = _point.X - (Convert.ToInt32(Width)>>1); Y = _point.Y - (Convert.ToInt32(Height)>>1); }
/// <summary> /// Change the emitter's midpoint to match the midpoint of a <code>FlxObject</code>. /// </summary> /// <param name="flxObject">The <code>FlxObject</code> that you want to sync up with.</param> public void at(FlxObject flxObject) { flxObject.getMidpoint(_point); X = _point.X - (Convert.ToInt32(Width) >> 1); Y = _point.Y - (Convert.ToInt32(Height) >> 1); }