Exemplo n.º 1
0
 private void OnViewChanged(ALayer2D obj)
 {
     this.Position = new Vector2f(obj.GetNormalizedPositionInWindow(this.Owner.Position).X, 1f);
 }
Exemplo n.º 2
0
 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);
 }