Example #1
0
 public RevolutionAnchor(IntVector vector)
 {
     Wires = new List<Wire>();
     Sprite = MGSprite.MGSpriteWithFilename("point");
     WireShowLayer.SharedWireShow().AddChild(this);
     Vector = vector;
     Sprite.Position = Vector.ToUIVector2();
 }
Example #2
0
 public virtual void SetVector(int x, int y)
 {
     Vector = new IntVector(x, y);
     if (Sprite != null)
     {
         Sprite.Position = Vector.ToUIVector2() + new Vector2(10, 16);
     }
 }