Пример #1
0
 public void Add()
 {
     hitbox = new LineHitbox(this);
     MainWindow.Self.ClickableObjects.Add(this);
     MainWindow.Self.refs.Add(new WeakReference <IClickable>(this));//temp
     new CableSegmentRenderer(this);
     IsRendered = true;
 }
Пример #2
0
        public CableSegment(Cable parent, int index)
        {
            Parent = parent;
            Index  = index;

            hitbox = new LineHitbox(this);

            Add();
        }
Пример #3
0
 public virtual void Add()
 {
     hitbox = new ConnectionNodeHitbox(this);
     MainWindow.Self.ClickableObjects.Add(this);
     MainWindow.Self.refs.Add(new WeakReference <IClickable>(this));//temp
 }