private void OnViewChanged(ALayer2D obj) { this.Position = new Vector2f(obj.GetNormalizedPositionInWindow(this.Owner.Position).X, 1f); }
public SoundObject2D(ALayer2D parentLayer, IObject2D owner, SoundBuffer soundBuffer) : base(parentLayer, owner) { this.sound = new Sound(soundBuffer); this.Position = new Vector2f(parentLayer.GetNormalizedPositionInWindow(owner.Position).X, 1f); }